mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Use correct current_password in RegistrationTest of invalid confirmation
In DatabaseAuthenticatable#update_with_password, password is now deleted if the current_password is invalid. dm-validations will not check the confirmation in that case, so this test was failing in dm-devise.
This commit is contained in:
parent
96a0477555
commit
f044916f94
1 changed files with 1 additions and 1 deletions
|
@ -203,7 +203,7 @@ class RegistrationTest < ActionController::IntegrationTest
|
|||
|
||||
fill_in 'password', :with => 'pas123'
|
||||
fill_in 'password confirmation', :with => ''
|
||||
fill_in 'current password', :with => '123456'
|
||||
fill_in 'current password', :with => '12345678'
|
||||
click_button 'Update'
|
||||
|
||||
assert_contain "Password doesn't match confirmation"
|
||||
|
|
Loading…
Reference in a new issue