mirror of
https://github.com/heartcombo/devise.git
synced 2026-04-28 03:00:29 -04:00
Revert "Revert "New password default minimum length is now 8""
This reverts commit b1f490a2f8.
Actually, the implementation was good!
This commit is contained in:
@@ -76,10 +76,10 @@ class ValidatableTest < ActiveSupport::TestCase
|
||||
assert_equal 'doesn\'t match confirmation', user.errors[:password].join
|
||||
end
|
||||
|
||||
test 'should require a password with minimum of 8 characters' do
|
||||
user = new_user(:password => '1234567', :password_confirmation => '1234567')
|
||||
test 'should require a password with minimum of 6 characters' do
|
||||
user = new_user(:password => '12345', :password_confirmation => '12345')
|
||||
assert user.invalid?
|
||||
assert_equal 'is too short (minimum is 8 characters)', user.errors[:password].join
|
||||
assert_equal 'is too short (minimum is 6 characters)', user.errors[:password].join
|
||||
end
|
||||
|
||||
test 'should require a password with maximum of 128 characters long' do
|
||||
|
||||
Reference in New Issue
Block a user