diff options
author | John Keiser <jkeiser@opscode.com> | 2013-09-16 16:22:10 -0700 |
---|---|---|
committer | John Keiser <jkeiser@opscode.com> | 2013-09-16 16:22:10 -0700 |
commit | b1a0be6178933a574ded85dfb57120929e582f66 (patch) | |
tree | 4c081caef46157940e6b983c394f4d0d382d25ee /spec/unit/application_spec.rb | |
parent | 22082616751b585fbaeaba1bdd541b6a1f3a5a51 (diff) | |
download | chef-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.rb | 3 |
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 |