mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-10 07:18:14 -05:00
Set minimum password length for edit and new views (#4068)
* Set minimum password length for edit and new views * Update edit.html.erb * Update registerable_test.rb
This commit is contained in:
committed by
Lucas Mazza
parent
a45c4c0ac4
commit
85bcbdf18b
@@ -219,6 +219,12 @@ class RegistrationTest < Devise::IntegrationTest
|
||||
assert_contain "Password confirmation doesn't match Password"
|
||||
refute User.to_adapter.find_first.valid_password?('pas123')
|
||||
end
|
||||
|
||||
test 'a signed in user should see a warning about minimum password length' do
|
||||
sign_in_as_user
|
||||
get edit_user_registration_path
|
||||
assert_contain 'characters minimum'
|
||||
end
|
||||
|
||||
test 'a signed in user should be able to cancel their account' do
|
||||
sign_in_as_user
|
||||
|
||||
Reference in New Issue
Block a user