3 @mock = mock("test mock")
6 specify "when one example has an expectation (non-mock) inside the block passed to the mock" do
7 @mock.should_receive(:msg) do |b|
8 b.should be_true #this call exposes the problem
10 @mock.msg(false) rescue nil
13 specify "then the next example should behave as expected instead of saying" do
14 @mock.should_receive(:foobar)
20 e.message.should == "Mock 'test mock' received unexpected message :foobar with (no args)"