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:
authorJarka Kadlecová <jarka@gitlab.com>2018-08-02 17:16:58 +0300
committerJarka Kadlecová <jarka@gitlab.com>2018-08-02 17:16:58 +0300
commit4d4b8f8bbedbfadb49e12df2b123b3528cda4c08 (patch)
treee4701b090c540811e41c79ab9fd5c2e378c584a3 /spec/workers
parente60ec75303475083746e2d09d2a99cc5c6ea0221 (diff)
Remove group todos when a users looses access
Diffstat (limited to 'spec/workers')
-rw-r--r--spec/workers/todos_destroyer/group_private_worker_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/workers/todos_destroyer/group_private_worker_spec.rb b/spec/workers/todos_destroyer/group_private_worker_spec.rb
new file mode 100644
index 00000000000..fcc38989ced
--- /dev/null
+++ b/spec/workers/todos_destroyer/group_private_worker_spec.rb
@@ -0,0 +1,12 @@
+require 'spec_helper'
+
+describe TodosDestroyer::GroupPrivateWorker do
+ it "calls the Todos::Destroy::GroupPrivateService with the params it was given" do
+ service = double
+
+ expect(::Todos::Destroy::GroupPrivateService).to receive(:new).with(100).and_return(service)
+ expect(service).to receive(:execute)
+
+ described_class.new.perform(100)
+ end
+end