features/safe_stubbing/safe_mocking.feature in bogus-0.1.4 vs features/safe_stubbing/safe_mocking.feature in bogus-0.1.5
- old
+ new
@@ -31,10 +31,10 @@
describe Library do
it "does something" do
library = Library.new
mock(library).checkout("some book") { :checked_out }
- library.checkout("some book").should == :checked_out
+ expect(library.checkout("some book")).to eq(:checked_out)
end
end
"""
Scenario: Mocking methods that do not exist on real object