X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fstdlib%2Fspec%2Ffunctions%2Fis_hash_spec.rb;h=3ef061d99808984caed3e627b1e7eb729acedb1d;hb=131e09855e065be940e104d9ab0f18940cc76257;hp=c2599a02a710df1dd9101f09b1d2bb7e891467c3;hpb=407d322498f4fde815abf381007fbecfe5c10b2b;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/stdlib/spec/functions/is_hash_spec.rb b/3rdparty/modules/stdlib/spec/functions/is_hash_spec.rb old mode 100755 new mode 100644 index c2599a02a..3ef061d99 --- a/3rdparty/modules/stdlib/spec/functions/is_hash_spec.rb +++ b/3rdparty/modules/stdlib/spec/functions/is_hash_spec.rb @@ -2,8 +2,8 @@ require 'spec_helper' describe 'is_hash' do it { is_expected.not_to eq(nil) } - it { is_expected.to run.with_params().and_raise_error(Puppet::ParseError, /wrong number of arguments/i) } - it { is_expected.to run.with_params({}, {}).and_raise_error(Puppet::ParseError, /wrong number of arguments/i) } + it { is_expected.to run.with_params.and_raise_error(Puppet::ParseError, %r{wrong number of arguments}i) } + it { is_expected.to run.with_params({}, {}).and_raise_error(Puppet::ParseError, %r{wrong number of arguments}i) } it { is_expected.to run.with_params('').and_return(false) } it { is_expected.to run.with_params({}).and_return(true) } it { is_expected.to run.with_params([]).and_return(false) }