spec/deprecation_spec.rb in deprecation-0.1.0 vs spec/deprecation_spec.rb in deprecation-0.2.0
- old
+ new
@@ -41,11 +41,11 @@
end
end
describe "b" do
it "should not be deprecated" do
- expect { subject.b }.not_to raise_error /b is deprecated/
+ expect { subject.b }.not_to raise_error
end
end
describe "c,d" do
it "should be deprecated" do
@@ -94,10 +94,10 @@
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(A.new.old_method).to be_true
+ expect(A.new.old_method).to eq true
end
end
end