spec/bogus/mocking_dsl_spec.rb in bogus-0.1.3 vs spec/bogus/mocking_dsl_spec.rb in bogus-0.1.4

- old
+ new

@@ -132,11 +132,11 @@ example.foo(self) end end it "can be used with self references" do - Bogus.record_calls_for(:passes_self_to_collaborator) + Bogus.record_calls_for(:passes_self_to_collaborator, PassesSelfToCollaborator) fake = Bogus.fake_for(:example_foo) object = PassesSelfToCollaborator.new object.hello(fake) @@ -379,10 +379,10 @@ Stubber.fake(:sample_for_contracts, greet: "Welcome, John!") Bogus.after_each_test - Bogus.record_calls_for(:sample_for_contracts) + Bogus.record_calls_for(:sample_for_contracts, SampleForContracts) end it "passes when all the mocked interactions were executed" do sample.greet("Welcome").should == "Welcome, John!"