Remove setting that disables account deletes (#17683)
This commit is contained in:
parent
62782babd0
commit
93f340a4bf
8 changed files with 6 additions and 39 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue