Fix account delete form not accepting password, update suspended (#3745)
account before removing content for quicker feedback to end-users
This commit is contained in:
parent
98eacb2238
commit
91c71471ab
3 changed files with 4 additions and 4 deletions
|
@ -35,7 +35,7 @@ describe Settings::DeletesController do
|
|||
|
||||
context 'with correct password' do
|
||||
before do
|
||||
delete :destroy, params: { password: 'petsmoldoggos' }
|
||||
delete :destroy, params: { form_delete_confirmation: { password: 'petsmoldoggos' } }
|
||||
end
|
||||
|
||||
it 'redirects to sign in page' do
|
||||
|
@ -53,7 +53,7 @@ describe Settings::DeletesController do
|
|||
|
||||
context 'with incorrect password' do
|
||||
before do
|
||||
delete :destroy, params: { password: 'blaze420' }
|
||||
delete :destroy, params: { form_delete_confirmation: { password: 'blaze420' } }
|
||||
end
|
||||
|
||||
it 'redirects back to confirmation page' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue