Skip to content

Instantly share code, notes, and snippets.

@thhermansen
Created January 13, 2010 08:10
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 thhermansen/276027 to your computer and use it in GitHub Desktop.
Save thhermansen/276027 to your computer and use it in GitHub Desktop.
With Rspec 1.3.0:
it "should pass.. ;-)" do
mock_model(Object, :valid? => true).valid?.should == true
end
--> Passes
it "should pass.. ;-)" do
mock_model(Object, :valid? => true).should be_valid
end
--> Fails, with msg: undefined method `handling_predicate!' for #<Spec::Matchers::Be:0x7f2760f154f8 @args=[:be_valid]>
After removing the latest rspec with `gem uninstall rspec -v 1.3.0` I'm left with v.1.2.9. The apwx which failed above does now pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment