Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-05-02 18:10:10 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-05-02 18:10:10 +0300
commitf62efc386492a3e7ee2243202389d29ab62b5978 (patch)
treedad7ba9a804344ed166b20cc3613de97962eea55 /spec/models/user_spec.rb
parent610d783b61f3c3c7d19e6167df26368a7e8a0075 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/user_spec.rb')
-rw-r--r--spec/models/user_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb
index bc425b15c6e..263f8ba4afd 100644
--- a/spec/models/user_spec.rb
+++ b/spec/models/user_spec.rb
@@ -5335,7 +5335,7 @@ RSpec.describe User do
let(:deleted_by) { create(:user) }
it 'blocks the user then schedules them for deletion if a hard delete is specified' do
- expect(DeleteUserWorker).to receive(:perform_async).with(deleted_by.id, user.id, hard_delete: true)
+ expect(DeleteUserWorker).to receive(:perform_async).with(deleted_by.id, user.id, { hard_delete: true })
user.delete_async(deleted_by: deleted_by, params: { hard_delete: true })