summaryrefslogtreecommitdiff
path: root/spec/workers/todos_destroyer/group_private_worker_spec.rb
blob: 4903edd4bbe9799f9ea5596f0281e22b7161e2d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe TodosDestroyer::GroupPrivateWorker do
  it "calls the Todos::Destroy::GroupPrivateService with the params it was given" do
    service = double

    expect(::Todos::Destroy::GroupPrivateService).to receive(:new).with(100).and_return(service)
    expect(service).to receive(:execute)

    described_class.new.perform(100)
  end
end