Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #91 from saysjonathan/rspec_new_api

rspec 2.11 compatibility
  • Loading branch information...
commit 63fd4339faf10721020bf49439cd4462c725151a 2 parents a6cd6da + 6b107e5
Ken Barber authored

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  spec/unit/puppet/type/firewall_spec.rb
6  spec/unit/puppet/type/firewall_spec.rb
@@ -158,11 +158,11 @@
158 158
       end
159 159
 
160 160
       it "should not accept something invalid for #{port}" do
161  
-        expect { @resource[port] = 'something odd' }.should raise_error(Puppet::Error, /^Parameter .+ failed: Munging failed for value ".+" in class .+: no such service/)
  161
+        expect { @resource[port] = 'something odd' }.to raise_error(Puppet::Error, /^Parameter .+ failed: Munging failed for value ".+" in class .+: no such service/)
162 162
       end
163 163
 
164 164
       it "should not accept something invalid in an array for #{port}" do
165  
-        expect { @resource[port] = ['something odd','something even odder'] }.should raise_error(Puppet::Error, /^Parameter .+ failed: Munging failed for value ".+" in class .+: no such service/)
  165
+        expect { @resource[port] = ['something odd','something even odder'] }.to raise_error(Puppet::Error, /^Parameter .+ failed: Munging failed for value ".+" in class .+: no such service/)
166 166
       end
167 167
     end
168 168
   end
@@ -304,7 +304,7 @@
304 304
           :action => "accept",
305 305
           :jump => "custom_chain"
306 306
         )
307  
-      }.should raise_error(Puppet::Error, /^Only one of the parameters 'action' and 'jump' can be set$/)
  307
+      }.to raise_error(Puppet::Error, /^Only one of the parameters 'action' and 'jump' can be set$/)
308 308
     end
309 309
   end
310 310
   describe ':gid and :uid' do

0 notes on commit 63fd433

Please sign in to comment.
Something went wrong with that request. Please try again.