spec/bogus/stubbing/double_spec.rb in bogus-0.1.4 vs spec/bogus/stubbing/double_spec.rb in bogus-0.1.5
- old
+ new
@@ -14,11 +14,11 @@
expect {
double.stub.foo("a", "b") { "the result" }
}.to raise_error
- double_tracker.should_not have_received.track(object)
+ expect(double_tracker).not_to have_received.track(object)
end
it "verifies stub definition" do
mock(verifies_stub_definition).verify!(object, :foo, ["a", "b"])
@@ -40,10 +40,10 @@
end
it "adds method overwriting" do
double.stub.foo("a", "b") { "the result" }
- overwrites_methods.overwrites.should == [[object, :foo]]
+ expect(overwrites_methods.overwrites).to eq([[object, :foo]])
end
it "records double interactions" do
mock(records_double_interactions).record(object, :foo, ["a", "b"])