debian-mirror-gitlab/spec/support/shared_examples/services/issuable/destroy_service_shared_examples.rb
2021-06-08 01:23:25 +05:30

21 lines
582 B
Ruby

# 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