describe 'concat' 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([1]).and_raise_error(Puppet::ParseError) }
- it { is_expected.to run.with_params(1, [2]).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([1]).and_raise_error(Puppet::ParseError, %r{Wrong number of arguments}) }
+ it { is_expected.to run.with_params(1, [2]).and_raise_error(Puppet::ParseError, %r{Requires array}) }
it { is_expected.to run.with_params([1], [2], [3]).and_return([1, 2, 3]) }
it { is_expected.to run.with_params(['1', '2', '3'], ['4', '5', '6']).and_return(['1', '2', '3', '4', '5', '6']) }
it { is_expected.to run.with_params(['1', '2', '3'], '4').and_return(['1', '2', '3', '4']) }