When running Rspec-puppet tests, a deprecation warning is seen:
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
Accordingly, I set up a spec_helper with a block like this:
RSpec.configure do |c|
c.mock_with :mocha
...
end
Just like the documentation here suggests. But the warning persists. What is wrong?