mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Fix typos
This commit is contained in:
parent
14863ba4c9
commit
fb18c6ca8d
6 changed files with 7 additions and 7 deletions
|
@ -152,7 +152,7 @@ module Devise
|
|||
|
||||
# We need to add the rootpath to `script_name` manually for applications that use a Rails
|
||||
# version lower than 5.1. Otherwise, it is going to generate a wrong path for Engines
|
||||
# that use Devise. Remove it when the support of Rails 5.0 is droped.
|
||||
# that use Devise. Remove it when the support of Rails 5.0 is dropped.
|
||||
elsif root_path_defined?(context) && !rails_51_and_up?
|
||||
rootpath = context.routes.url_helpers.root_path
|
||||
opts[:script_name] = rootpath.chomp('/') if rootpath.length > 1
|
||||
|
|
|
@ -28,7 +28,7 @@ module Devise
|
|||
end
|
||||
end
|
||||
|
||||
# Signs in a specific resource, mimicking a successfull sign in
|
||||
# Signs in a specific resource, mimicking a successful sign in
|
||||
# operation through +Devise::SessionsController#create+.
|
||||
#
|
||||
# * +resource+ - The resource that should be authenticated
|
||||
|
|
|
@ -65,7 +65,7 @@ class DatabaseAuthenticationTest < Devise::IntegrationTest
|
|||
end
|
||||
end
|
||||
|
||||
test 'sign in with invalid pasword should return to sign in form with error message' do
|
||||
test 'sign in with invalid password should return to sign in form with error message' do
|
||||
sign_in_as_admin do
|
||||
fill_in 'password', with: 'abcdef'
|
||||
end
|
||||
|
@ -80,7 +80,7 @@ class DatabaseAuthenticationTest < Devise::IntegrationTest
|
|||
sign_in_as_user do
|
||||
fill_in 'email', with: 'wrongemail@test.com'
|
||||
end
|
||||
|
||||
|
||||
assert_not_contain 'Not found in database'
|
||||
assert_contain 'Invalid Email or password.'
|
||||
end
|
||||
|
|
|
@ -77,7 +77,7 @@ class SessionTimeoutTest < Devise::IntegrationTest
|
|||
end
|
||||
end
|
||||
|
||||
test 'time out user session after deault limit time and redirect to latest get request' do
|
||||
test 'time out user session after default limit time and redirect to latest get request' do
|
||||
user = sign_in_as_user
|
||||
visit edit_form_user_path(user)
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ class ResetPasswordInstructionsTest < ActionMailer::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
test 'email sent after reseting the user password' do
|
||||
test 'email sent after resetting the user password' do
|
||||
assert_not_nil mail
|
||||
end
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ class RecoverableTest < ActiveSupport::TestCase
|
|||
assert create_user.reset_password('123456789', '123456789')
|
||||
end
|
||||
|
||||
test 'should clear reset password token while reseting the password' do
|
||||
test 'should clear reset password token while resetting the password' do
|
||||
user = create_user
|
||||
assert_nil user.reset_password_token
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue