Mercurial > repos > other > Puppet
diff modules/stdlib/spec/functions/dig_spec.rb @ 275:d9352a684e62
Mass update of modules to remove deprecation warnings
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 26 Jan 2020 11:36:07 +0000 |
parents | c42fb28cff86 |
children |
line wrap: on
line diff
--- a/modules/stdlib/spec/functions/dig_spec.rb Sat Jan 04 11:42:45 2020 +0000 +++ b/modules/stdlib/spec/functions/dig_spec.rb Sun Jan 26 11:36:07 2020 +0000 @@ -6,7 +6,7 @@ end it 'gives a deprecation warning when called' do - scope.expects(:warning).with('dig() DEPRECATED: This function has been replaced in Puppet 4.5.0, please use dig44() for backwards compatibility or use the new version.') + expect(scope).to receive(:warning).with('dig() DEPRECATED: This function has been replaced in Puppet 4.5.0, please use dig44() for backwards compatibility or use the new version.') scope.function_dig([{}, []]) end end