Created
January 13, 2010 08:10
-
-
Save thhermansen/276027 to your computer and use it in GitHub Desktop.
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
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