summaryrefslogtreecommitdiff
path: root/spec/unit/provider/ifconfig/debian_spec.rb
diff options
context:
space:
mode:
authorXabier de Zuazo <xabier@onddo.com>2013-02-10 21:52:10 +0100
committerBryan McLellan <btm@opscode.com>2013-06-19 14:09:58 -0700
commitdb9db4a83e16941ed263496f1af7fb4f8707722e (patch)
tree9617767dcdc7a6509804f835c54d93d507aa8165 /spec/unit/provider/ifconfig/debian_spec.rb
parent25e6ee50d2af7032feb969091b22b5e7d9dc2745 (diff)
downloadchef-db9db4a83e16941ed263496f1af7fb4f8707722e.tar.gz
[CHEF-3029] some empty lines and whitespaces cleaned up
Diffstat (limited to 'spec/unit/provider/ifconfig/debian_spec.rb')
-rw-r--r--spec/unit/provider/ifconfig/debian_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/provider/ifconfig/debian_spec.rb b/spec/unit/provider/ifconfig/debian_spec.rb
index 53f1b84d3c..27ccc3ed4a 100644
--- a/spec/unit/provider/ifconfig/debian_spec.rb
+++ b/spec/unit/provider/ifconfig/debian_spec.rb
@@ -43,7 +43,7 @@ describe Chef::Provider::Ifconfig::Debian do
@config_filename_ifaces = "/etc/network/interfaces"
@config_filename_ifcfg = "/etc/network/interfaces.d/ifcfg-#{@new_resource.device}"
end
-
+
describe "generate_config for action_add" do
before do
@config_file_ifaces = StringIO.new
@@ -53,13 +53,13 @@ describe Chef::Provider::Ifconfig::Debian do
File.should_receive(:open).with(@config_filename_ifaces, "w").and_yield(@config_file_ifaces)
File.should_receive(:new).with(@config_filename_ifcfg, "w").and_return(@config_file_ifcfg)
end
-
+
it "should create network-scripts directory" do
File.should_receive(:directory?).with(File.dirname(@config_filename_ifcfg)).and_return(false)
Dir.should_receive(:mkdir).with(File.dirname(@config_filename_ifcfg))
@provider.run_action(:add)
end
-
+
it "should write configure network-scripts directory" do
File.should_receive(:directory?).with(File.dirname(@config_filename_ifcfg)).and_return(true)
@provider.run_action(:add)