./failing_examples/mocking_example.rb:13: ./spec/spec/runner/formatter/html_formatter_spec.rb:24: ./spec/spec/runner/formatter/html_formatter_spec.rb:20:
11 it "should fail when expected message not received" do
12 mock = mock("poke me")
13 mock.should_receive(:poke)
14 end
15
./failing_examples/mocking_example.rb:22: ./spec/spec/runner/formatter/html_formatter_spec.rb:24: ./spec/spec/runner/formatter/html_formatter_spec.rb:20:
20 mock.should_receive(:three).ordered
21 mock.one
22 mock.three
23 mock.two
24 end
./failing_examples/mocking_example.rb:28: ./spec/spec/runner/formatter/html_formatter_spec.rb:24: ./spec/spec/runner/formatter/html_formatter_spec.rb:20:
26 it "should get yelled at when sending unexpected messages" do
27 mock = mock("don't talk to me")
28 mock.should_not_receive(:any_message_at_all)
29 mock.any_message_at_all
30 end
./failing_examples/mocking_example.rb:33: ./spec/spec/runner/formatter/html_formatter_spec.rb:24: ./spec/spec/runner/formatter/html_formatter_spec.rb:20:
31
32 it "has a bug we need to fix" do
33 pending "here is the bug" do
34 # Actually, no. It's fixed. This will fail because it passes :-)
35 mock = mock("Bug")
./failing_examples/diffing_spec.rb:13: ./spec/spec/runner/formatter/html_formatter_spec.rb:24: ./spec/spec/runner/formatter/html_formatter_spec.rb:20:
11framework for Ruby
12EOF
13 usa.should == uk
14 end
./failing_examples/diffing_spec.rb:34: ./spec/spec/runner/formatter/html_formatter_spec.rb:24: ./spec/spec/runner/formatter/html_formatter_spec.rb:20:
32 expected = Animal.new "bob", "giraffe"
33 actual = Animal.new "bob", "tortoise"
34 expected.should eql(actual)
35 end
36end