Welcome to mirror list, hosted at ThFree Co, Russian Federation.

label_links_destroy_worker_spec.rb « issuable « workers « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a838f1c801722ec32217703a0b7b76ae071804c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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