summaryrefslogtreecommitdiff
path: root/spec/workers/todos_destroyer/private_features_worker_spec.rb
blob: 9599f5ee071b3fc529524b3aa1aefc5ea1e0be15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
require 'spec_helper'

describe TodosDestroyer::PrivateFeaturesWorker do
  it "calls the Todos::Destroy::PrivateFeaturesService with the params it was given" do
    service = double

    expect(::Todos::Destroy::PrivateFeaturesService).to receive(:new).with(100, nil).and_return(service)
    expect(service).to receive(:execute)

    described_class.new.perform(100)
  end
end