From 975bb8490d125ccaecbb9aa89a6dadeebf08700e Mon Sep 17 00:00:00 2001 From: Masato Oba Date: Sun, 29 Oct 2017 12:31:02 +0000 Subject: [PATCH] Fix typo 'an user' to 'a user' --- lib/devise/models/authenticatable.rb | 2 +- test/integration/lockable_test.rb | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/devise/models/authenticatable.rb b/lib/devise/models/authenticatable.rb index 6f2f4fbb..7d21d502 100644 --- a/lib/devise/models/authenticatable.rb +++ b/lib/devise/models/authenticatable.rb @@ -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) diff --git a/test/integration/lockable_test.rb b/test/integration/lockable_test.rb index 5602bb9f..cf6a9001 100644 --- a/test/integration/lockable_test.rb +++ b/test/integration/lockable_test.rb @@ -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?"