From 3488066031447a9cc9dfbcc8bd50cd6b8213f5e4 Mon Sep 17 00:00:00 2001 From: Gabe da Silveira Date: Fri, 29 Jul 2011 14:17:31 -0700 Subject: [PATCH] Spelling correction --- test/integration/confirmable_test.rb | 2 +- test/integration/recoverable_test.rb | 4 ++-- test/models/confirmable_test.rb | 4 ++-- test/models/validatable_test.rb | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/integration/confirmable_test.rb b/test/integration/confirmable_test.rb index 3d8c31ae..6add9177 100644 --- a/test/integration/confirmable_test.rb +++ b/test/integration/confirmable_test.rb @@ -69,7 +69,7 @@ class ConfirmationTest < ActionController::IntegrationTest assert_contain 'already confirmed' end - test 'sign in user automatically after confirming it\'s email' do + test 'sign in user automatically after confirming its email' do user = create_user(:confirm => false) visit_user_confirmation_with_token(user.confirmation_token) diff --git a/test/integration/recoverable_test.rb b/test/integration/recoverable_test.rb index 6062b04f..5303aed6 100644 --- a/test/integration/recoverable_test.rb +++ b/test/integration/recoverable_test.rb @@ -166,7 +166,7 @@ class PasswordTest < ActionController::IntegrationTest assert user.reload.valid_password?('987654321') end - test 'sign in user automatically after changing it\'s password' do + test 'sign in user automatically after changing its password' do user = create_user request_forgot_password reset_password :reset_password_token => user.reload.reset_password_token @@ -174,7 +174,7 @@ class PasswordTest < ActionController::IntegrationTest assert warden.authenticated?(:user) end - test 'does not sign in user automatically after changing it\'s password if it\'s not active' do + test 'does not sign in user automatically after changing its password if its not active' do user = create_user(:confirm => false) request_forgot_password reset_password :reset_password_token => user.reload.reset_password_token diff --git a/test/models/confirmable_test.rb b/test/models/confirmable_test.rb index 31531b1c..c5136612 100644 --- a/test/models/confirmable_test.rb +++ b/test/models/confirmable_test.rb @@ -121,7 +121,7 @@ class ConfirmableTest < ActiveSupport::TestCase assert_equal "not found", confirmation_user.errors[:email].join end - test 'should send email instructions for the user confirm it\'s email' do + test 'should send email instructions for the user confirm its email' do user = create_user assert_email_sent do User.send_confirmation_instructions(:email => user.email) @@ -219,7 +219,7 @@ class ConfirmableTest < ActiveSupport::TestCase assert user.reload.active_for_authentication? end - test 'should find a user to send email instructions for the user confirm it\'s email by authentication_keys' do + test 'should find a user to send email instructions for the user confirm its email by authentication_keys' do swap Devise, :authentication_keys => [:username, :email] do user = create_user confirm_user = User.send_confirmation_instructions(:email => user.email, :username => user.username) diff --git a/test/models/validatable_test.rb b/test/models/validatable_test.rb index df044bc1..ac318f76 100644 --- a/test/models/validatable_test.rb +++ b/test/models/validatable_test.rb @@ -87,7 +87,7 @@ class ValidatableTest < ActiveSupport::TestCase assert_equal 'is too long (maximum is 128 characters)', user.errors[:password].join end - test 'should not require password length when it\'s not changed' do + test 'should not require password length when its not changed' do user = create_user.reload user.password = user.password_confirmation = nil assert user.valid?