diff options
author | Claire McQuin <claire@getchef.com> | 2014-12-16 09:24:40 -0800 |
---|---|---|
committer | Claire McQuin <claire@getchef.com> | 2014-12-16 09:24:40 -0800 |
commit | a3c7c4c2909e3d0577170b204208f0fbe4ed74ab (patch) | |
tree | a597c0f05689e1c42141eafad0bd8a5a59a4ac45 | |
parent | bc1ada7d023317bc1ac0969c2d6bba2e634552d1 (diff) | |
download | chef-mcquin/audit-mode-experimental.tar.gz |
Stub Chef::Log#warn.mcquin/audit-mode-experimental
-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 |