Difference between revisions of "Puppet"

From Tamerz
Jump to: navigation, search
(Created page with "When creating a new module with PDK, running unit tests gives the following message: Deprecation Warnings: puppetlabs_spec_helper: defaults `mock_with` to `:mocha`. See h...")
(No difference)

Revision as of 10:40, 1 December 2021

When creating a new module with PDK, running unit tests gives the following message:

Deprecation Warnings:

puppetlabs_spec_helper: defaults `mock_with` to `:mocha`. See https://github.com/puppetlabs/puppetlabs_spec_helper#mock_with to choose a sensible value for you

To switch to ":mocha" as mentioned, create a ".sync.yml" file in the module directory and add the following lines:

---
spec/spec_helper.rb:
  mock_with: ':rspec'

Then, run "pdk update" to apply the changes.