diff options
-rw-r--r-- | spec/unit/application/client_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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 |