summaryrefslogtreecommitdiff
path: root/spec/unit/provider/ifconfig_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/provider/ifconfig_spec.rb')
-rw-r--r--spec/unit/provider/ifconfig_spec.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/unit/provider/ifconfig_spec.rb b/spec/unit/provider/ifconfig_spec.rb
index d1d20f7f22..f4fdc23353 100644
--- a/spec/unit/provider/ifconfig_spec.rb
+++ b/spec/unit/provider/ifconfig_spec.rb
@@ -38,20 +38,20 @@ describe Chef::Provider::Ifconfig do
status = mock("Status", :exitstatus => 0)
@provider.instance_variable_set("@status", status)
@provider.current_resource = @current_resource
-
+
end
- describe Chef::Provider::Ifconfig, "load_current_resource" do
- before do
+ describe Chef::Provider::Ifconfig, "load_current_resource" do
+ before do
status = mock("Status", :exitstatus => 1)
- @provider.should_receive(:popen4).and_return status
+ @provider.should_receive(:popen4).and_return status
@provider.load_current_resource
end
it "should track state of ifconfig failure." do
@provider.instance_variable_get("@status").exitstatus.should_not == 0
end
- it "should thrown an exception when ifconfig fails" do
+ it "should thrown an exception when ifconfig fails" do
@provider.define_resource_requirements
- lambda { @provider.process_resource_requirements }.should raise_error Chef::Exceptions::Ifconfig
+ lambda { @provider.process_resource_requirements }.should raise_error Chef::Exceptions::Ifconfig
end
end
describe Chef::Provider::Ifconfig, "action_add" do
@@ -84,7 +84,7 @@ describe Chef::Provider::Ifconfig do
end
describe Chef::Provider::Ifconfig, "action_enable" do
-
+
it "should enable interface if does not exist" do
@provider.stub!(:load_current_resource)
@current_resource.inet_addr nil
@@ -129,7 +129,7 @@ describe Chef::Provider::Ifconfig do
@new_resource.should_not be_updated
end
end
-
+
describe Chef::Provider::Ifconfig, "action_disable" do
it "should disable interface if it exists" do