diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/provider/ifconfig/redhat_spec.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/spec/unit/provider/ifconfig/redhat_spec.rb b/spec/unit/provider/ifconfig/redhat_spec.rb index dd49257603..8e18fcd71e 100644 --- a/spec/unit/provider/ifconfig/redhat_spec.rb +++ b/spec/unit/provider/ifconfig/redhat_spec.rb @@ -40,11 +40,10 @@ describe Chef::Provider::Ifconfig::Redhat do end - describe Chef::Provider::Ifconfig::Redhat, "generate_config for action_add" do + describe "generate_config for action_add" do it "should write network-script for centos" do @provider.stub!(:load_current_resource) - @node.automatic_attrs[:platform] = "centos" @provider.stub!(:run_command) config_filename = "/etc/sysconfig/network-scripts/ifcfg-#{@new_resource.device}" config_file = StringIO.new @@ -57,11 +56,10 @@ describe Chef::Provider::Ifconfig::Redhat do end end - describe Chef::Provider::Ifconfig::Redhat, "delete_config for action_delete" do + describe "delete_config for action_delete" do it "should delete network-script if it exists for centos" do - @node.automatic_attrs[:platform] = "centos" - @current_resource.device "eth0" + @current_resource.device @new_resource.device @provider.stub!(:load_current_resource) @provider.stub!(:run_command) config_filename = "/etc/sysconfig/network-scripts/ifcfg-#{@new_resource.device}" |