summaryrefslogtreecommitdiff
path: root/spec/services/delete_user_service_spec.rb
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2016-08-06 07:25:51 -0700
committerStan Hu <stanhu@gmail.com>2016-08-10 09:28:21 -0700
commit4955a47cb1c52168114364e45a2fccf6bc105452 (patch)
tree50bb5ea1979a596edef53817aea75796686fc2a9 /spec/services/delete_user_service_spec.rb
parentae2d3c417075c83e169ab7662f3dd11e3b2bf043 (diff)
downloadgitlab-ce-4955a47cb1c52168114364e45a2fccf6bc105452.tar.gz
Clean up project destructionclean-up-project-destroy
Instead of redirecting from the project service to the service and back to the model, put all destruction code in the service. Also removes a possible source of failure where run_after_commit may not destroy the project.
Diffstat (limited to 'spec/services/delete_user_service_spec.rb')
-rw-r--r--spec/services/delete_user_service_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/services/delete_user_service_spec.rb b/spec/services/delete_user_service_spec.rb
index a65938fa03b..630458f9efc 100644
--- a/spec/services/delete_user_service_spec.rb
+++ b/spec/services/delete_user_service_spec.rb
@@ -15,7 +15,7 @@ describe DeleteUserService, services: true do
end
it 'will delete the project in the near future' do
- expect_any_instance_of(Projects::DestroyService).to receive(:pending_delete!).once
+ expect_any_instance_of(Projects::DestroyService).to receive(:async_execute).once
DeleteUserService.new(current_user).execute(user)
end