summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-12-02 16:06:08 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2014-12-02 16:06:08 -0800
commit609ad0ad53152d62b49346b233a973d2b1a50202 (patch)
tree1cc9ce62bfcffbf5039947031d1e1f36cd013554
parent9e1b251c4e4c6a6f76acbd53fa1e1987d7db5cdb (diff)
downloadchef-lcg/knife-plugin-fix.tar.gz
adding reset_config_loader! to knife speclcg/knife-plugin-fix
this passes on my workstation in isolation and fails in a complete run on travis, so its likely the revenge of global state problems.
-rw-r--r--spec/unit/knife_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/unit/knife_spec.rb b/spec/unit/knife_spec.rb
index b6c4597037..8f652e58c7 100644
--- a/spec/unit/knife_spec.rb
+++ b/spec/unit/knife_spec.rb
@@ -44,6 +44,10 @@ describe Chef::Knife do
@stderr = StringIO.new
end
+ after(:each) do
+ Chef::Knife.reset_config_loader!
+ end
+
describe "after loading a subcommand" do
before do
Chef::Knife.reset_subcommands!