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

destroy_service_shared_examples.rb « issuable « services « shared_examples « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e776c098fa01d6fdf470c2a5f00857aad1696cfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

shared_examples_for 'service deleting todos' do
  it 'destroys associated todos asynchronously' do
    expect(TodosDestroyer::DestroyedIssuableWorker)
      .to receive(:perform_async)
      .with(issuable.id, issuable.class.name)

    subject.execute(issuable)
  end
end

shared_examples_for 'service deleting label links' do
  it 'destroys associated label links asynchronously' do
    expect(Issuable::LabelLinksDestroyWorker)
      .to receive(:perform_async)
      .with(issuable.id, issuable.class.name)

    subject.execute(issuable)
  end
end