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>2021-05-12 15:10:24 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-05-12 15:10:24 +0300
commit71a67d17b02e7b8dec2f4c257f6734dc7818fb1e (patch)
tree6b45633257869a67fd534bd2cf899b93a48794c0 /spec/workers/issuable
parent133ec9237af290062aae70e6f115db69b51c88de (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/workers/issuable')
-rw-r--r--spec/workers/issuable/label_links_destroy_worker_spec.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/workers/issuable/label_links_destroy_worker_spec.rb b/spec/workers/issuable/label_links_destroy_worker_spec.rb
new file mode 100644
index 00000000000..a838f1c8017
--- /dev/null
+++ b/spec/workers/issuable/label_links_destroy_worker_spec.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+require 'spec_helper'
+
+RSpec.describe Issuable::LabelLinksDestroyWorker do
+ let(:job_args) { [1, 'MergeRequest'] }
+ let(:service) { double }
+
+ include_examples 'an idempotent worker' do
+ it 'calls the Issuable::DestroyLabelLinksService' do
+ expect(::Issuable::DestroyLabelLinksService).to receive(:new).twice.and_return(service)
+ expect(service).to receive(:execute).twice
+
+ subject
+ end
+ end
+end