diff options
author | Nick Thomas <nick@gitlab.com> | 2017-06-02 14:18:24 +0100 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2017-06-05 13:08:06 +0100 |
commit | 158581a447bb4976161eca26ddcb2fccd25888ab (patch) | |
tree | 37c8ba0b0c21059246f351acb318e4f848606297 /spec/models/abuse_report_spec.rb | |
parent | c34107608ecc5c36e80a748eb4c9b88d2b1157cf (diff) | |
download | gitlab-ce-158581a447bb4976161eca26ddcb2fccd25888ab.tar.gz |
Refactor the DeleteUserWorker
Diffstat (limited to 'spec/models/abuse_report_spec.rb')
-rw-r--r-- | spec/models/abuse_report_spec.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/models/abuse_report_spec.rb b/spec/models/abuse_report_spec.rb index ced93c8f762..90aec2b45e6 100644 --- a/spec/models/abuse_report_spec.rb +++ b/spec/models/abuse_report_spec.rb @@ -28,9 +28,7 @@ RSpec.describe AbuseReport, type: :model do end it 'lets a worker delete the user' do - expect(DeleteUserWorker).to receive(:perform_async).with(user.id, subject.user.id, - delete_solo_owned_groups: true, - hard_delete: true) + expect(DeleteUserWorker).to receive(:perform_async).with(user.id, subject.user.id, hard_delete: true) subject.remove_user(deleted_by: user) end |