From 609ad0ad53152d62b49346b233a973d2b1a50202 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Tue, 2 Dec 2014 16:06:08 -0800 Subject: adding reset_config_loader! to knife spec this passes on my workstation in isolation and fails in a complete run on travis, so its likely the revenge of global state problems. --- spec/unit/knife_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) 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! -- cgit v1.2.1