mirror of
https://github.com/heartcombo/devise.git
synced 2026-04-28 03:00:29 -04:00
Fix typo 'an user' to 'a user'
This commit is contained in:
@@ -256,7 +256,7 @@ module Devise
|
||||
# end
|
||||
#
|
||||
# Finally, notice that Devise also queries for users in other scenarios
|
||||
# besides authentication, for example when retrieving an user to send
|
||||
# besides authentication, for example when retrieving a user to send
|
||||
# an e-mail for password reset. In such cases, find_for_authentication
|
||||
# is not called.
|
||||
def find_for_authentication(tainted_conditions)
|
||||
|
||||
@@ -172,7 +172,7 @@ class LockTest < Devise::IntegrationTest
|
||||
assert_equal response.body, {}.to_json
|
||||
end
|
||||
|
||||
test "in paranoid mode, when trying to unlock an user that exists it should not say that it exists if it is locked" do
|
||||
test "in paranoid mode, when trying to unlock a user that exists it should not say that it exists if it is locked" do
|
||||
swap Devise, paranoid: true do
|
||||
user = create_user(locked: true)
|
||||
|
||||
@@ -187,7 +187,7 @@ class LockTest < Devise::IntegrationTest
|
||||
end
|
||||
end
|
||||
|
||||
test "in paranoid mode, when trying to unlock an user that exists it should not say that it exists if it is not locked" do
|
||||
test "in paranoid mode, when trying to unlock a user that exists it should not say that it exists if it is not locked" do
|
||||
swap Devise, paranoid: true do
|
||||
user = create_user(locked: false)
|
||||
|
||||
@@ -202,7 +202,7 @@ class LockTest < Devise::IntegrationTest
|
||||
end
|
||||
end
|
||||
|
||||
test "in paranoid mode, when trying to unlock an user that does not exists it should not say that it does not exists" do
|
||||
test "in paranoid mode, when trying to unlock a user that does not exists it should not say that it does not exists" do
|
||||
swap Devise, paranoid: true do
|
||||
visit new_user_session_path
|
||||
click_link "Didn't receive unlock instructions?"
|
||||
|
||||
Reference in New Issue
Block a user