summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@opscode.com>2012-08-14 13:15:37 -0700
committerLamont Granquist <lamont@opscode.com>2012-08-14 13:15:37 -0700
commitf51f241549367fdca64c076ac88216bb80a1cf72 (patch)
treea4fe4b3bf10799c4ed12c1457d44bbd7300c3ce7
parentc7fded529634bf960ab3436a79282fc31c2ef4c6 (diff)
downloadchef-f51f241549367fdca64c076ac88216bb80a1cf72.tar.gz
make restoring the config state more resiliant
-rw-r--r--chef/spec/unit/mixin/securable_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/chef/spec/unit/mixin/securable_spec.rb b/chef/spec/unit/mixin/securable_spec.rb
index a18d886131..d2e8770c9d 100644
--- a/chef/spec/unit/mixin/securable_spec.rb
+++ b/chef/spec/unit/mixin/securable_spec.rb
@@ -119,11 +119,11 @@ describe Chef::Mixin::Securable do
end
after(:all) do
- load File.join(File.dirname(__FILE__), "..", "..", "..", "lib", "chef", "config.rb")
+ Chef::Config.configuration = @original_config if @original_config
end
after(:each) do
- Chef::Config.configuration = @original_config
+ 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