debian-mirror-gitlab/spec/workers/todos_destroyer/private_features_worker_spec.rb
2022-01-26 12:08:38 +05:30

15 lines
419 B
Ruby

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