X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fdsa-puppet.git;a=blobdiff_plain;f=3rdparty%2Fmodules%2Fstdlib%2Fspec%2Ffunctions%2Fdos2unix_spec.rb;h=4b04f5bbad99019b5241015067dd256bf3915fcc;hp=8677d8c277a45292b9670026103b35e9496e059d;hb=30caaa85aed7015ca0d77216bff175eebd917eb7;hpb=6f656bd4265e3dab13b9af2bf96e9044322e9d8f diff --git a/3rdparty/modules/stdlib/spec/functions/dos2unix_spec.rb b/3rdparty/modules/stdlib/spec/functions/dos2unix_spec.rb index 8677d8c27..4b04f5bba 100644 --- a/3rdparty/modules/stdlib/spec/functions/dos2unix_spec.rb +++ b/3rdparty/modules/stdlib/spec/functions/dos2unix_spec.rb @@ -10,13 +10,13 @@ describe 'dos2unix' do is_expected.to run.with_params('one', 'two').and_raise_error(ArgumentError, %r{Wrong number of arguments}) end it do - is_expected.to run.with_params([]).and_raise_error(Puppet::ParseError) + is_expected.to run.with_params([]).and_raise_error(Puppet::ParseError, %r{Requires string as argument}) end it do - is_expected.to run.with_params({}).and_raise_error(Puppet::ParseError) + is_expected.to run.with_params({}).and_raise_error(Puppet::ParseError, %r{Requires string as argument}) end it do - is_expected.to run.with_params(1).and_raise_error(Puppet::ParseError) + is_expected.to run.with_params(1).and_raise_error(Puppet::ParseError, %r{Requires string as argument}) end end