diff --git a/lib/devise/failure_app.rb b/lib/devise/failure_app.rb index 7f80733c..522c6024 100644 --- a/lib/devise/failure_app.rb +++ b/lib/devise/failure_app.rb @@ -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 diff --git a/lib/devise/test/integration_helpers.rb b/lib/devise/test/integration_helpers.rb index 99731389..0c7c910a 100644 --- a/lib/devise/test/integration_helpers.rb +++ b/lib/devise/test/integration_helpers.rb @@ -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 diff --git a/test/integration/database_authenticatable_test.rb b/test/integration/database_authenticatable_test.rb index 64a52b90..ed641ef2 100644 --- a/test/integration/database_authenticatable_test.rb +++ b/test/integration/database_authenticatable_test.rb @@ -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 diff --git a/test/integration/timeoutable_test.rb b/test/integration/timeoutable_test.rb index ceddd108..b6f24714 100644 --- a/test/integration/timeoutable_test.rb +++ b/test/integration/timeoutable_test.rb @@ -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) diff --git a/test/mailers/reset_password_instructions_test.rb b/test/mailers/reset_password_instructions_test.rb index f0b45809..f38829dd 100644 --- a/test/mailers/reset_password_instructions_test.rb +++ b/test/mailers/reset_password_instructions_test.rb @@ -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 diff --git a/test/models/recoverable_test.rb b/test/models/recoverable_test.rb index 919e6e48..ab47f95f 100644 --- a/test/models/recoverable_test.rb +++ b/test/models/recoverable_test.rb @@ -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