Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

rspec 2.11 compatibility

  • Loading branch information...
commit 6b107e57750ec2327d04dddc978bcc6d0dcf5fdf 1 parent a6cd6da
@saysjonathan saysjonathan authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 spec/unit/puppet/type/firewall_spec.rb
View
6 spec/unit/puppet/type/firewall_spec.rb
@@ -158,11 +158,11 @@
end
it "should not accept something invalid for #{port}" do
- expect { @resource[port] = 'something odd' }.should raise_error(Puppet::Error, /^Parameter .+ failed: Munging failed for value ".+" in class .+: no such service/)
+ expect { @resource[port] = 'something odd' }.to raise_error(Puppet::Error, /^Parameter .+ failed: Munging failed for value ".+" in class .+: no such service/)
end
it "should not accept something invalid in an array for #{port}" do
- expect { @resource[port] = ['something odd','something even odder'] }.should raise_error(Puppet::Error, /^Parameter .+ failed: Munging failed for value ".+" in class .+: no such service/)
+ expect { @resource[port] = ['something odd','something even odder'] }.to raise_error(Puppet::Error, /^Parameter .+ failed: Munging failed for value ".+" in class .+: no such service/)
end
end
end
@@ -304,7 +304,7 @@
:action => "accept",
:jump => "custom_chain"
)
- }.should raise_error(Puppet::Error, /^Only one of the parameters 'action' and 'jump' can be set$/)
+ }.to raise_error(Puppet::Error, /^Only one of the parameters 'action' and 'jump' can be set$/)
end
end
describe ':gid and :uid' do
Please sign in to comment.
Something went wrong with that request. Please try again.