spec/deprecation_spec.rb in deprecation-0.2.0 vs spec/deprecation_spec.rb in deprecation-0.2.1
- old
+ new
@@ -93,10 +93,10 @@
Deprecation.stub logger: logger
Deprecation.stub default_deprecation_behavior: :log
end
it "should provide a useful deprecation trace" do
- logger.should_receive(:warn).with(/called from old_method/)
+ expect(logger).to receive(:warn).with(/called from old_method/)
expect(A.new.old_method).to eq true
end
end
end