end
it do
- expect {
- subject.call
- }.to raise_error(Puppet::Error, %r{expects an Integer value, got String})
+ is_expected.to raise_error(Puppet::Error, %r{expects an Integer value, got String})
end
end
end
it do
- expect {
- subject.call
- }.to raise_error(Puppet::Error, %r{parameter version cannot be used in general form})
+ is_expected.to raise_error(Puppet::Error, %r{parameter version cannot be used in general form})
end
end
end
it do
- expect {
- subject.call
- }.to raise_error(Puppet::Error, %r{parameters release and origin are mutually exclusive})
+ is_expected.to raise_error(Puppet::Error, %r{parameters release and origin are mutually exclusive})
end
end
end
it do
- expect {
- subject.call
- }.to raise_error(Puppet::Error, %r{parameters release, origin, and version are mutually exclusive})
+ is_expected.to raise_error(Puppet::Error, %r{parameters release, origin, and version are mutually exclusive})
end
end
end
it do
- expect {
- subject.call
- }.to raise_error(Puppet::Error, %r{parameters release, origin, and version are mutually exclusive})
+ is_expected.to raise_error(Puppet::Error, %r{parameters release, origin, and version are mutually exclusive})
end
end
end