debian-mirror-gitlab/spec/workers/todos_destroyer/project_private_worker_spec.rb
2020-08-09 17:44:08 +05:30

15 lines
406 B
Ruby

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