./failing_examples/mocking_example.rb:13 /Users/david/projects/ruby/rspec/rspec/spec/spec/runner/formatter/spec_mate_formatter_spec.rb:50 /Users/david/projects/ruby/rspec/rspec/spec/spec/runner/formatter/spec_mate_formatter_spec.rb:46 :in `chdir' /Users/david/projects/ruby/rspec/rspec/spec/spec/runner/formatter/spec_mate_formatter_spec.rb:46
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 /Users/david/projects/ruby/rspec/rspec/spec/spec/runner/formatter/spec_mate_formatter_spec.rb:50 /Users/david/projects/ruby/rspec/rspec/spec/spec/runner/formatter/spec_mate_formatter_spec.rb:46 :in `chdir' /Users/david/projects/ruby/rspec/rspec/spec/spec/runner/formatter/spec_mate_formatter_spec.rb:46
20 mock.should_receive(:three).ordered
21 mock.one
22 mock.three
23 mock.two
24 end
./failing_examples/mocking_example.rb:29 /Users/david/projects/ruby/rspec/rspec/spec/spec/runner/formatter/spec_mate_formatter_spec.rb:50 /Users/david/projects/ruby/rspec/rspec/spec/spec/runner/formatter/spec_mate_formatter_spec.rb:46 :in `chdir' /Users/david/projects/ruby/rspec/rspec/spec/spec/runner/formatter/spec_mate_formatter_spec.rb:46
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 /Users/david/projects/ruby/rspec/rspec/spec/spec/runner/formatter/spec_mate_formatter_spec.rb:50 /Users/david/projects/ruby/rspec/rspec/spec/spec/runner/formatter/spec_mate_formatter_spec.rb:46 :in `chdir' /Users/david/projects/ruby/rspec/rspec/spec/spec/runner/formatter/spec_mate_formatter_spec.rb:46
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 /Users/david/projects/ruby/rspec/rspec/spec/spec/runner/formatter/spec_mate_formatter_spec.rb:50 /Users/david/projects/ruby/rspec/rspec/spec/spec/runner/formatter/spec_mate_formatter_spec.rb:46 :in `chdir' /Users/david/projects/ruby/rspec/rspec/spec/spec/runner/formatter/spec_mate_formatter_spec.rb:46
11framework for Ruby
12EOF
13 usa.should == uk
14 end
./failing_examples/diffing_spec.rb:34 /Users/david/projects/ruby/rspec/rspec/spec/spec/runner/formatter/spec_mate_formatter_spec.rb:50 /Users/david/projects/ruby/rspec/rspec/spec/spec/runner/formatter/spec_mate_formatter_spec.rb:46 :in `chdir' /Users/david/projects/ruby/rspec/rspec/spec/spec/runner/formatter/spec_mate_formatter_spec.rb:46
32 expected = Animal.new "bob", "giraffe"
33 actual = Animal.new "bob", "tortoise"
34 expected.should eql(actual)
35 end
36end