about summary refs log tree commit diff
path: root/spec/controllers/admin/reported_statuses_controller_spec.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-09-11 16:32:44 +0200
committermultiple creatures <dev@multiple-creature.party>2020-02-27 13:55:39 -0600
commit3681f7dcce8f82d2a4377a051952159cd03919c0 (patch)
tree1e11fbf90b822450b0e736408cb17442babc54a6 /spec/controllers/admin/reported_statuses_controller_spec.rb
parent422b59808b4818171e057e1a459de153816bf505 (diff)
port tootsuite#11805 to monserfork: Change deletes to preserve soft-deleted statuses in unresolved reports
Change all account actions except "none" to resolve all unresolved reports

Refactor `SuspendAccountService` to be more readable
Diffstat (limited to 'spec/controllers/admin/reported_statuses_controller_spec.rb')
-rw-r--r--spec/controllers/admin/reported_statuses_controller_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/admin/reported_statuses_controller_spec.rb b/spec/controllers/admin/reported_statuses_controller_spec.rb
index bd146b795..2a1598123 100644
--- a/spec/controllers/admin/reported_statuses_controller_spec.rb
+++ b/spec/controllers/admin/reported_statuses_controller_spec.rb
@@ -47,7 +47,7 @@ describe Admin::ReportedStatusesController do
       it 'removes a status' do
         allow(RemovalWorker).to receive(:perform_async)
         subject.call
-        expect(RemovalWorker).to have_received(:perform_async).with(status_ids.first, redraft: false)
+        expect(RemovalWorker).to have_received(:perform_async).with(status_ids.first, immediate: true)
       end
     end