X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fstdlib%2Fspec%2Ffunctions%2Fintersection_spec.rb;fp=3rdparty%2Fmodules%2Fstdlib%2Fspec%2Ffunctions%2Fintersection_spec.rb;h=0ea871fb11d0c2256bf767855866bd69fdcb8ba1;hb=131e09855e065be940e104d9ab0f18940cc76257;hp=ec368a548110f2babff896b87ea74c7be709cbbc;hpb=407d322498f4fde815abf381007fbecfe5c10b2b;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/stdlib/spec/functions/intersection_spec.rb b/3rdparty/modules/stdlib/spec/functions/intersection_spec.rb old mode 100755 new mode 100644 index ec368a548..0ea871fb1 --- a/3rdparty/modules/stdlib/spec/functions/intersection_spec.rb +++ b/3rdparty/modules/stdlib/spec/functions/intersection_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' describe 'intersection' 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.and_raise_error(Puppet::ParseError) } it { is_expected.to run.with_params('one').and_raise_error(Puppet::ParseError) } it { is_expected.to run.with_params('one', 'two').and_raise_error(Puppet::ParseError) } it { is_expected.to run.with_params('one', 'two', 'three').and_raise_error(Puppet::ParseError) } @@ -18,5 +18,5 @@ describe 'intersection' do it { is_expected.to run.with_params(['one', 'two', 'two', 'three'], ['two', 'three']).and_return(['two', 'three']) } it { is_expected.to run.with_params(['one', 'two', 'three'], ['two', 'two', 'three']).and_return(['two', 'three']) } it { is_expected.to run.with_params(['one', 'two', 'three'], ['two', 'three', 'four']).and_return(['two', 'three']) } - it 'should not confuse types' do is_expected.to run.with_params(['1', '2', '3'], [1, 2]).and_return([]) end + it 'does not confuse types' do is_expected.to run.with_params(['1', '2', '3'], [1, 2]).and_return([]) end end