From: Ken Barber Date: Sat, 24 Mar 2012 22:38:21 +0000 (+0000) Subject: Fix extraneous trailing whitespace X-Git-Tag: 0.1.0~34^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=01f1462a323157ec6017b92ee33226d21b6d10bd;p=puppet-modules%2Fpuppetlabs-firewall.git Fix extraneous trailing whitespace --- diff --git a/spec/unit/puppet/provider/iptables_spec.rb b/spec/unit/puppet/provider/iptables_spec.rb index 33863d2..e01dab6 100644 --- a/spec/unit/puppet/provider/iptables_spec.rb +++ b/spec/unit/puppet/provider/iptables_spec.rb @@ -34,12 +34,12 @@ describe 'iptables provider detection' do end it "should raise a default provider error when there are no commands" do - # Stub all commands lookups so they return nothing + # Stub all commands lookups so they return nothing exists.any_instance.stubs(:which).returns false # Instantiate a resource instance and make sure it raises an exception - lambda { resource = Puppet::Type.type(:firewall).new({ - :name => '000 test foo' }) }.should raise_error(Puppet::DevError, + lambda { resource = Puppet::Type.type(:firewall).new({ + :name => '000 test foo' }) }.should raise_error(Puppet::DevError, "Could not find a default provider for firewall") end end @@ -57,7 +57,7 @@ describe 'iptables provider' do Puppet::Type::Firewall.stubs(:defaultprovider).returns provider provider.stubs(:command).with(:iptables_save).returns "/sbin/iptables-save" end - + it 'should be able to get a list of existing rules' do # Pretend to return nil from iptables provider.expects(:execute).with(['/sbin/iptables-save']).returns("")