Hi again, > user = User.create(@invalid_attributes) > user.should_not be_valid
This gives me: NoMethodError in 'User should fail when passwords do not match' undefined method `handling_predicate!' for #<Spec::Matchers::Be: 0x104d8a518 @args=[:be_valid]> > Try raise_error instead of raise_exception. If that works, you're > using an older version of rspec. If not, I'm not sure what's going on. Yeah, I wasn't carefully reading that error-- it was: ActiveRecord::RecordInvalid in 'User should create a valid user' I accidentally had @invalid = @valid.merge!(..new password..), and that was breaking the should be valid test, the invalid one works with the expect block. So that way works... Thank you. -patrick _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users