diff options
author | Jarka Kadlecová <jarka@gitlab.com> | 2018-07-27 11:28:17 +0200 |
---|---|---|
committer | Jarka Kadlecová <jarka@gitlab.com> | 2018-07-31 12:32:08 +0200 |
commit | bdc8396e25e6eba6edcf2896daa49bb49695ef8c (patch) | |
tree | d08f569da8eaf56d192c631fa8dfd3ee791cb66b /spec/workers | |
parent | 7934b91311a70d994c6700201979c6673160fd01 (diff) | |
download | gitlab-ce-bdc8396e25e6eba6edcf2896daa49bb49695ef8c.tar.gz |
Remove todos when project feature visibility changes
Diffstat (limited to 'spec/workers')
-rw-r--r-- | spec/workers/todos_destroyer/private_features_worker_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/workers/todos_destroyer/private_features_worker_spec.rb b/spec/workers/todos_destroyer/private_features_worker_spec.rb new file mode 100644 index 00000000000..9599f5ee071 --- /dev/null +++ b/spec/workers/todos_destroyer/private_features_worker_spec.rb @@ -0,0 +1,12 @@ +require 'spec_helper' + +describe TodosDestroyer::PrivateFeaturesWorker do + it "calls the Todos::Destroy::PrivateFeaturesService with the params it was given" do + service = double + + expect(::Todos::Destroy::PrivateFeaturesService).to receive(:new).with(100, nil).and_return(service) + expect(service).to receive(:execute) + + described_class.new.perform(100) + end +end |