Skip to content

Instantly share code, notes, and snippets.

@ChrisLundquist
Created October 18, 2012 22:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChrisLundquist/3915234 to your computer and use it in GitHub Desktop.
Save ChrisLundquist/3915234 to your computer and use it in GitHub Desktop.
class Foo
end
describe Foo do
it "should call the right equals method" do
Foo.new.should be_equal Foo.new
end
end
$ spec test_spec.rb
F
1)
'Foo should call the right equals method' FAILED
expected equal?(#<Foo:0x00000001f3c568>) to return true, got false
test_spec.rb:6:in `block (2 levels) in <top (required)>'
/home/vagrant/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `eval'
/home/vagrant/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `<main>'
Finished in 0.017849162 seconds
1 example, 1 failure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment