gitlab-org--gitlab-foss/spec/workers/todos_destroyer/entity_leave_worker_spec.rb

15 lines
421 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe TodosDestroyer::EntityLeaveWorker do
it "calls the Todos::Destroy::EntityLeaveService with the params it was given" do
service = double
expect(::Todos::Destroy::EntityLeaveService).to receive(:new).with(100, 5, 'Group').and_return(service)
expect(service).to receive(:execute)
described_class.new.perform(100, 5, 'Group')
end
end