From 01f1462a323157ec6017b92ee33226d21b6d10bd Mon Sep 17 00:00:00 2001 From: Ken Barber Date: Sat, 24 Mar 2012 22:38:21 +0000 Subject: [PATCH] Fix extraneous trailing whitespace --- spec/unit/puppet/provider/iptables_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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("") -- 2.45.2