Spelling correction
This commit is contained in:
parent
bc9ea93f50
commit
3488066031
|
@ -69,7 +69,7 @@ class ConfirmationTest < ActionController::IntegrationTest
|
||||||
assert_contain 'already confirmed'
|
assert_contain 'already confirmed'
|
||||||
end
|
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)
|
user = create_user(:confirm => false)
|
||||||
visit_user_confirmation_with_token(user.confirmation_token)
|
visit_user_confirmation_with_token(user.confirmation_token)
|
||||||
|
|
||||||
|
|
|
@ -166,7 +166,7 @@ class PasswordTest < ActionController::IntegrationTest
|
||||||
assert user.reload.valid_password?('987654321')
|
assert user.reload.valid_password?('987654321')
|
||||||
end
|
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
|
user = create_user
|
||||||
request_forgot_password
|
request_forgot_password
|
||||||
reset_password :reset_password_token => user.reload.reset_password_token
|
reset_password :reset_password_token => user.reload.reset_password_token
|
||||||
|
@ -174,7 +174,7 @@ class PasswordTest < ActionController::IntegrationTest
|
||||||
assert warden.authenticated?(:user)
|
assert warden.authenticated?(:user)
|
||||||
end
|
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)
|
user = create_user(:confirm => false)
|
||||||
request_forgot_password
|
request_forgot_password
|
||||||
reset_password :reset_password_token => user.reload.reset_password_token
|
reset_password :reset_password_token => user.reload.reset_password_token
|
||||||
|
|
|
@ -121,7 +121,7 @@ class ConfirmableTest < ActiveSupport::TestCase
|
||||||
assert_equal "not found", confirmation_user.errors[:email].join
|
assert_equal "not found", confirmation_user.errors[:email].join
|
||||||
end
|
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
|
user = create_user
|
||||||
assert_email_sent do
|
assert_email_sent do
|
||||||
User.send_confirmation_instructions(:email => user.email)
|
User.send_confirmation_instructions(:email => user.email)
|
||||||
|
@ -219,7 +219,7 @@ class ConfirmableTest < ActiveSupport::TestCase
|
||||||
assert user.reload.active_for_authentication?
|
assert user.reload.active_for_authentication?
|
||||||
end
|
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
|
swap Devise, :authentication_keys => [:username, :email] do
|
||||||
user = create_user
|
user = create_user
|
||||||
confirm_user = User.send_confirmation_instructions(:email => user.email, :username => user.username)
|
confirm_user = User.send_confirmation_instructions(:email => user.email, :username => user.username)
|
||||||
|
|
|
@ -87,7 +87,7 @@ class ValidatableTest < ActiveSupport::TestCase
|
||||||
assert_equal 'is too long (maximum is 128 characters)', user.errors[:password].join
|
assert_equal 'is too long (maximum is 128 characters)', user.errors[:password].join
|
||||||
end
|
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 = create_user.reload
|
||||||
user.password = user.password_confirmation = nil
|
user.password = user.password_confirmation = nil
|
||||||
assert user.valid?
|
assert user.valid?
|
||||||
|
|
Loading…
Reference in New Issue