From a3c7c4c2909e3d0577170b204208f0fbe4ed74ab Mon Sep 17 00:00:00 2001 From: Claire McQuin Date: Tue, 16 Dec 2014 09:24:40 -0800 Subject: Stub Chef::Log#warn. --- spec/unit/application/client_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/unit/application/client_spec.rb b/spec/unit/application/client_spec.rb index 9e1df30e98..1b4adcafea 100644 --- a/spec/unit/application/client_spec.rb +++ b/spec/unit/application/client_spec.rb @@ -131,6 +131,10 @@ Enable chef-client interval runs by setting `:client_fork = true` in your config describe "audit mode" do shared_examples "experimental feature" do + before do + allow(Chef::Log).to receive(:warn) + end + it "emits a warning that audit mode is an experimental feature" do expect(Chef::Log).to receive(:warn).with(/Audit mode is an experimental feature/) app.reconfigure -- cgit v1.2.1