summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanielsdeleo <dan@getchef.com>2014-04-23 14:29:34 -0700
committerdanielsdeleo <dan@getchef.com>2014-04-24 09:49:53 -0700
commitfdd3027dfe6043450ecde232e055df10099e003f (patch)
treed793e93d712bfeed28e3b8bf6c941d5a69dfca6d
parent88254d72fd1bfc5c3569537ef9544ac1528b1cea (diff)
downloadchef-fdd3027dfe6043450ecde232e055df10099e003f.tar.gz
Prevent code reloading in knife tests (fixes constant warnings)
-rw-r--r--spec/unit/knife_spec.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/unit/knife_spec.rb b/spec/unit/knife_spec.rb
index 8bf85bf604..ce10d72a35 100644
--- a/spec/unit/knife_spec.rb
+++ b/spec/unit/knife_spec.rb
@@ -29,6 +29,9 @@ describe Chef::Knife do
Chef::Log.logger = Logger.new(StringIO.new)
Chef::Config[:node_name] = "webmonkey.example.com"
+
+ # Prevent gratuitous code reloading:
+ Chef::Knife.stub(:load_commands)
@knife = Chef::Knife.new
@knife.ui.stub(:puts)
@knife.ui.stub(:print)