summaryrefslogtreecommitdiff
path: root/spec/unit
diff options
context:
space:
mode:
authorPete Higgins <pete@peterhiggins.org>2020-07-22 12:33:14 -0700
committerPete Higgins <pete@peterhiggins.org>2020-07-22 12:56:34 -0700
commit76123dbbdd9365b2f2b6f20b0e4158dcdf12599c (patch)
treee793e5098bfb0e2877b5bd4df07fa031f6e74b01 /spec/unit
parent2dffddb40952baf754de923e6c1fb7b1ccdce208 (diff)
downloadchef-76123dbbdd9365b2f2b6f20b0e4158dcdf12599c.tar.gz
Set log level to :fatal in test to prevent excess logging.fix-excess-logging-in-functional-test
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
Diffstat (limited to 'spec/unit')
-rw-r--r--spec/unit/application_spec.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/unit/application_spec.rb b/spec/unit/application_spec.rb
index 4e77084644..aa916d0793 100644
--- a/spec/unit/application_spec.rb
+++ b/spec/unit/application_spec.rb
@@ -26,7 +26,6 @@ describe Chef::Application do
allow(@app).to receive(:trap)
allow(Dir).to receive(:chdir).and_return(0)
allow(@app).to receive(:reconfigure)
- Chef::Log.init(STDERR)
end
after do
@@ -253,6 +252,10 @@ describe Chef::Application do
end
context "when log_level is not set" do
+ before do
+ Chef::Config.delete(:log_level)
+ end
+
it_behaves_like "log_level_is_auto"
end