spec/bogus/fakes/frozen_fakes_spec.rb in bogus-0.1.4 vs spec/bogus/fakes/frozen_fakes_spec.rb in bogus-0.1.5
- old
+ new
@@ -13,19 +13,19 @@
describe "stubbing" do
it "allows stubbing" do
stub(object).foo(1) { 123 }
- object.foo(1).should == 123
+ expect(object.foo(1)).to eq 123
end
end
describe "mocking" do
it "allows mocking" do
mock(object).foo(1) { 123 }
- object.foo(1).should == 123
+ expect(object.foo(1)).to eq 123
end
it "allows verifying expectations" do
mock(object).foo(1) { 123 }
@@ -37,11 +37,11 @@
describe "spying" do
it "allows spying" do
object.foo(1)
- object.should have_received.foo(1)
- object.should_not have_received.foo(2)
+ expect(object).to have_received.foo(1)
+ expect(object).to_not have_received.foo(2)
end
end
end
context "anonymous fakes" do