Fix typo 'an user' to 'a user'

This commit is contained in:
Masato Oba
2017-10-29 12:31:02 +00:00
parent 6ceb649b10
commit 975bb8490d
2 changed files with 4 additions and 4 deletions

View File

@@ -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)

View File

@@ -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?"