Created
June 2, 2010 08:13
-
-
Save thibaudgg/422094 to your computer and use it in GitHub Desktop.
RSpec 2.0.0.beta.9 its problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rspec' | |
class Foo | |
def bar | |
nil | |
end | |
def bar2 | |
1 | |
end | |
end | |
describe Foo do | |
subject { Foo.new } | |
its(:bar) { should be_nil } # Failure => expected nil, got #<Foo:0x1018e1410> | |
its(:bar2) { should be == 1 } # Works as excepted | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment