Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb
- index f5ac082..0984b1b 100644
- --- a/test/unit/user_test.rb
- +++ b/test/unit/user_test.rb
- @@ -57,6 +57,12 @@ class UserTest < Test::Unit::TestCase
- users(:quentin).update_attributes(:password => 'new password', :password_confirmation => 'new password')
- assert_equal users(:quentin), User.authenticate('quentin', 'new password')
- end
- +
- + def test_should_find_user_with_updated_login
- + users(:quentin).update_attributes(:login => 'quentin2')
- + user = User.find_in_state :first, :active, :conditions => {:login => 'quentin2'}
- + assert_not_nil(user)
- + end
- def test_should_not_rehash_password
- users(:quentin).update_attributes(:login => 'quentin2')
Add Comment
Please, Sign In to add comment