Skip to content

Instantly share code, notes, and snippets.

@thibaudgg
Created June 2, 2010 08:13
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 thibaudgg/422094 to your computer and use it in GitHub Desktop.
Save thibaudgg/422094 to your computer and use it in GitHub Desktop.
RSpec 2.0.0.beta.9 its problem
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