gitlab-org--gitlab-foss/spec/workers/todos_destroyer/destroyed_issuable_worker_s...

16 lines
416 B
Ruby

# 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