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:
Diffstat (limited to 'spec/workers/todos_destroyer/destroyed_issuable_worker_spec.rb')
-rw-r--r--spec/workers/todos_destroyer/destroyed_issuable_worker_spec.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/workers/todos_destroyer/destroyed_issuable_worker_spec.rb b/spec/workers/todos_destroyer/destroyed_issuable_worker_spec.rb
new file mode 100644
index 00000000000..6ccad25ad76
--- /dev/null
+++ b/spec/workers/todos_destroyer/destroyed_issuable_worker_spec.rb
@@ -0,0 +1,15 @@
+# frozen_string_literal: true
+
+require 'spec_helper'
+
+RSpec.describe TodosDestroyer::DestroyedIssuableWorker do
+ let(:job_args) { [1, 'MergeRequest'] }
+
+ it 'calls the Todos::Destroy::DestroyedIssuableService' do
+ expect_next_instance_of(::Todos::Destroy::DestroyedIssuableService, *job_args) do |service|
+ expect(service).to receive(:execute)
+ end
+
+ described_class.new.perform(*job_args)
+ end
+end