mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-10 07:18:14 -05:00
Refactor code related with authentication keys on password recovery and account unlocking, closes #396.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user