X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fstdlib%2Fspec%2Ffunctions%2Fdig_spec.rb;h=ac2b6e443418a31e3d600062eb710b3ddca5a36d;hb=131e09855e065be940e104d9ab0f18940cc76257;hp=ad16fdd43425e283c9c0581fbd2d28b1cb1fed66;hpb=407d322498f4fde815abf381007fbecfe5c10b2b;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/stdlib/spec/functions/dig_spec.rb b/3rdparty/modules/stdlib/spec/functions/dig_spec.rb index ad16fdd43..ac2b6e443 100644 --- a/3rdparty/modules/stdlib/spec/functions/dig_spec.rb +++ b/3rdparty/modules/stdlib/spec/functions/dig_spec.rb @@ -1,13 +1,12 @@ require 'spec_helper' describe 'dig' do - - it "should exist" do - expect(Puppet::Parser::Functions.function("dig")).to eq("function_dig") + it 'exists' do + expect(Puppet::Parser::Functions.function('dig')).to eq('function_dig') end - it "should give 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.") + it 'gives a deprecation warning when called' do + 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