spec/deprecation_spec.rb in deprecation-0.2.2 vs spec/deprecation_spec.rb in deprecation-0.99.0

- old
+ new

@@ -88,11 +88,10 @@ end let(:logger) { double() } before(:each) do - Deprecation.stub logger: logger - Deprecation.stub default_deprecation_behavior: :log + allow(Deprecation).to receive_messages(logger: logger, default_deprecation_behavior: :log) end it "should provide a useful deprecation trace" do expect(logger).to receive(:warn).with(/called from old_method/) expect(A.new.old_method).to eq true