test/models/lockable_test.rb in devise-1.3.0 vs test/models/lockable_test.rb in devise-1.3.1
- old
+ new
@@ -161,15 +161,15 @@
unlock_user = User.send_unlock_instructions(:email => user.email)
assert_equal unlock_user, user
end
test 'should return a new user if no email was found' do
- unlock_user = User.send_unlock_instructions(:email => "invalid@email.com")
+ unlock_user = User.send_unlock_instructions(:email => "invalid@example.com")
assert_not unlock_user.persisted?
end
test 'should add error to new user email if no email was found' do
- unlock_user = User.send_unlock_instructions(:email => "invalid@email.com")
+ unlock_user = User.send_unlock_instructions(:email => "invalid@example.com")
assert_equal 'not found', unlock_user.errors[:email].join
end
test 'should find a user to send unlock instructions by authentication_keys' do
swap Devise, :authentication_keys => [:username, :email] do