diff options
author | danielsdeleo <dan@getchef.com> | 2014-04-23 14:29:34 -0700 |
---|---|---|
committer | danielsdeleo <dan@getchef.com> | 2014-04-24 09:49:53 -0700 |
commit | fdd3027dfe6043450ecde232e055df10099e003f (patch) | |
tree | d793e93d712bfeed28e3b8bf6c941d5a69dfca6d | |
parent | 88254d72fd1bfc5c3569537ef9544ac1528b1cea (diff) | |
download | chef-fdd3027dfe6043450ecde232e055df10099e003f.tar.gz |
Prevent code reloading in knife tests (fixes constant warnings)
-rw-r--r-- | spec/unit/knife_spec.rb | 3 |
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) |