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