mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Remove not used variables
This commit is contained in:
parent
2b7328535d
commit
db8eeb6c6e
1 changed files with 3 additions and 3 deletions
|
@ -97,7 +97,7 @@ class RecoverableTest < ActiveSupport::TestCase
|
|||
test 'should reset reset_password_token before send the reset instructions email' do
|
||||
user = create_user
|
||||
token = user.reset_password_token
|
||||
reset_password_user = User.send_reset_password_instructions(:email => user.email)
|
||||
User.send_reset_password_instructions(:email => user.email)
|
||||
assert_not_equal token, user.reload.reset_password_token
|
||||
end
|
||||
|
||||
|
@ -142,7 +142,7 @@ class RecoverableTest < ActiveSupport::TestCase
|
|||
old_password = user.password
|
||||
user.send :generate_reset_password_token!
|
||||
|
||||
reset_password_user = User.reset_password_by_token(
|
||||
User.reset_password_by_token(
|
||||
:reset_password_token => user.reset_password_token,
|
||||
:password => 'new_password',
|
||||
:password_confirmation => 'new_password'
|
||||
|
@ -202,4 +202,4 @@ class RecoverableTest < ActiveSupport::TestCase
|
|||
:reset_password_token
|
||||
]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue