X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fdsa-puppet.git;a=blobdiff_plain;f=3rdparty%2Fmodules%2Fstdlib%2Fspec%2Ffunctions%2Fdowncase_spec.rb;h=181e282b924b461d6c68081e157c394b776e21e5;hp=78bfec210b2e1470e0fc706f16ad23c17d105cda;hb=30caaa85aed7015ca0d77216bff175eebd917eb7;hpb=6f656bd4265e3dab13b9af2bf96e9044322e9d8f diff --git a/3rdparty/modules/stdlib/spec/functions/downcase_spec.rb b/3rdparty/modules/stdlib/spec/functions/downcase_spec.rb index 78bfec210..181e282b9 100644 --- a/3rdparty/modules/stdlib/spec/functions/downcase_spec.rb +++ b/3rdparty/modules/stdlib/spec/functions/downcase_spec.rb @@ -2,8 +2,8 @@ require 'spec_helper' describe 'downcase', :if => Puppet::Util::Package.versioncmp(Puppet.version, '6.0.0') < 0 do it { is_expected.not_to eq(nil) } - it { is_expected.to run.with_params.and_raise_error(Puppet::ParseError) } - it { is_expected.to run.with_params(100).and_raise_error(Puppet::ParseError) } + it { is_expected.to run.with_params.and_raise_error(Puppet::ParseError, %r{Wrong number of arguments}) } + it { is_expected.to run.with_params(100).and_raise_error(Puppet::ParseError, %r{Requires either array or string}) } it { is_expected.to run.with_params('abc').and_return('abc') } it { is_expected.to run.with_params('Abc').and_return('abc') } it { is_expected.to run.with_params('ABC').and_return('abc') }