Update the maximum password length

This commit is contained in:
Nascher 2015-08-29 23:58:02 +00:00
parent 4632208699
commit dd6698b8a1
2 changed files with 3 additions and 3 deletions

View file

@ -44,8 +44,8 @@ class UserTest < ActiveSupport::TestCase
def test_validate_long_password
assert_no_difference 'User.count' do
u = create_user :password => generate_random_string(41)
assert_equal "is too long (maximum is 40 characters)", u.errors[:password][0]
u = create_user :password => generate_random_string(73)
assert_equal "is too long (maximum is 72 characters)", u.errors[:password][0]
end
end