diff options
Diffstat (limited to 'spec/lib/puppet_spec/compiler.rb')
-rw-r--r-- | spec/lib/puppet_spec/compiler.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/puppet_spec/compiler.rb b/spec/lib/puppet_spec/compiler.rb index fb04a7b..44274bf 100644 --- a/spec/lib/puppet_spec/compiler.rb +++ b/spec/lib/puppet_spec/compiler.rb @@ -33,7 +33,7 @@ module PuppetSpec::Compiler if Puppet.version.to_f < 5.0 args << 'apply' # rubocop:disable RSpec/AnyInstance - Puppet::Transaction::Persistence.any_instance.stubs(:save) + allow_any_instance_of(Puppet::Transaction::Persistence).to receive(:save) # rubocop:enable RSpec/AnyInstance end catalog = compile_to_ral(manifest) @@ -51,7 +51,7 @@ module PuppetSpec::Compiler def apply_with_error_check(manifest) apply_compiled_manifest(manifest) do |res| - res.expects(:err).never + expect(res).not_to receive(:err) end end |