From b1a0be6178933a574ded85dfb57120929e582f66 Mon Sep 17 00:00:00 2001 From: John Keiser Date: Mon, 16 Sep 2013 16:22:10 -0700 Subject: Fix tests that rely on leaky Chef::Config --- spec/unit/application_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'spec/unit/application_spec.rb') 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 -- cgit v1.2.1