diff options
Diffstat (limited to 'spec/unit/deprecation_spec.rb')
-rw-r--r-- | spec/unit/deprecation_spec.rb | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/spec/unit/deprecation_spec.rb b/spec/unit/deprecation_spec.rb index af8e34850b..41c1724e5b 100644 --- a/spec/unit/deprecation_spec.rb +++ b/spec/unit/deprecation_spec.rb @@ -65,15 +65,8 @@ describe Chef::Deprecation do end context "deprecation warning messages" do - RSpec::Matchers.define_negated_matcher :a_non_empty_array, :be_empty - it "should be enabled for deprecated methods" do - expect(Chef::Log).to receive(:warn).with(a_non_empty_array) - TestClass.new.deprecated_method(10) - end - - it "should contain stack trace" do - expect(Chef::Log).to receive(:warn).with(a_string_including(".rb")) + expect(Chef).to receive(:deprecated).with(:internal_api, /Method.*of 'TestClass'/) TestClass.new.deprecated_method(10) end end |