0
0
Fork 0

Remove setting that disables account deletes (#17683)

This commit is contained in:
Eugen Rochko 2022-10-06 10:16:47 +02:00 committed by GitHub
parent 62782babd0
commit 93f340a4bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 6 additions and 39 deletions

View file

@ -81,20 +81,6 @@ describe Settings::DeletesController do
expect(response).to redirect_to settings_delete_path
end
end
context 'when account deletions are disabled' do
around do |example|
open_deletion = Setting.open_deletion
example.run
Setting.open_deletion = open_deletion
end
it 'redirects' do
Setting.open_deletion = false
delete :destroy
expect(response).to redirect_to root_path
end
end
end
context 'when not signed in' do