summaryrefslogtreecommitdiff
path: root/spec/unit/application_spec.rb
diff options
context:
space:
mode:
authorJohn Keiser <jkeiser@opscode.com>2013-09-16 16:22:10 -0700
committerJohn Keiser <jkeiser@opscode.com>2013-09-16 16:22:10 -0700
commitb1a0be6178933a574ded85dfb57120929e582f66 (patch)
tree4c081caef46157940e6b983c394f4d0d382d25ee /spec/unit/application_spec.rb
parent22082616751b585fbaeaba1bdd541b6a1f3a5a51 (diff)
downloadchef-b1a0be6178933a574ded85dfb57120929e582f66.tar.gz
Fix tests that rely on leaky Chef::Config
Diffstat (limited to 'spec/unit/application_spec.rb')
-rw-r--r--spec/unit/application_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/unit/application_spec.rb b/spec/unit/application_spec.rb
index e0701614a3..73139b667a 100644
--- a/spec/unit/application_spec.rb
+++ b/spec/unit/application_spec.rb
@@ -193,7 +193,8 @@ describe Chef::Application do
end
it "should initialise the chef logger level" do
- Chef::Log.should_receive(:level=).with(Chef::Config[:log_level]).and_return(true)
+ # By default, Chef translates :auto to :warn
+ Chef::Log.should_receive(:level=).with(:warn).and_return(true)
@app.configure_logging
end