Refactor code related with authentication keys on password recovery and account unlocking, closes #396.

This commit is contained in:
José Valim
2010-09-21 12:05:17 +02:00
parent 850afec96e
commit 5429f940e7
3 changed files with 9 additions and 28 deletions

View File

@@ -83,7 +83,7 @@ class RecoverableTest < ActiveSupport::TestCase
test 'should return a new record with errors if user was not found by e-mail' do
reset_password_user = User.send_reset_password_instructions(:email => "invalid@email.com")
assert_not reset_password_user.persisted?
assert_equal "not found", reset_password_user.errors[:base].join
assert_equal "not found", reset_password_user.errors[:email].join
end
test 'should find a user to send instructions by authentication_keys' do