diff options
Diffstat (limited to 'spec/unit/mixin/securable_spec.rb')
-rw-r--r-- | spec/unit/mixin/securable_spec.rb | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/spec/unit/mixin/securable_spec.rb b/spec/unit/mixin/securable_spec.rb index 764da9b1d1..fe21393c90 100644 --- a/spec/unit/mixin/securable_spec.rb +++ b/spec/unit/mixin/securable_spec.rb @@ -45,7 +45,6 @@ describe Chef::Mixin::Securable do describe "unix-specific behavior" do before(:each) do platform_mock :unix do - @original_config = Chef::Config.hash_dup load File.join(File.dirname(__FILE__), "..", "..", "..", "lib", "chef", "config.rb") load File.join(File.dirname(__FILE__), "..", "..", "..", "lib", "chef", "mixin", "securable.rb") @securable = Object.new @@ -54,10 +53,6 @@ describe Chef::Mixin::Securable do end end - after(:each) do - Chef::Config.configuration = @original_config - end - it "should accept a group name or id for group with spaces and backslashes" do lambda { @securable.group 'test\ group' }.should_not raise_error(ArgumentError) end @@ -109,7 +104,6 @@ describe Chef::Mixin::Securable do describe "windows-specific behavior" do before(:each) do platform_mock :windows do - @original_config = Chef::Config.hash_dup load File.join(File.dirname(__FILE__), "..", "..", "..", "lib", "chef", "config.rb") load File.join(File.dirname(__FILE__), "..", "..", "..", "lib", "chef", "mixin", "securable.rb") SECURABLE_CLASS = Class.new do @@ -120,14 +114,6 @@ describe Chef::Mixin::Securable do end end - after(:all) do - Chef::Config.configuration = @original_config if @original_config - end - - after(:each) do - Chef::Config.configuration = @original_config if @original_config - end - it "should not accept a group name or id for group with spaces and multiple backslashes" do lambda { @securable.group 'test\ \group' }.should raise_error(ArgumentError) end |