debian-mirror-gitlab/spec/workers/todos_destroyer/private_features_worker_spec.rb

15 lines
419 B
Ruby
Raw Normal View History

2019-07-07 11:18:12 +05:30
# frozen_string_literal: true
2018-11-18 11:00:15 +05:30
require 'spec_helper'
2020-07-28 23:09:34 +05:30
RSpec.describe TodosDestroyer::PrivateFeaturesWorker do
2018-11-18 11:00:15 +05:30
it "calls the Todos::Destroy::PrivateFeaturesService with the params it was given" do
service = double
2022-01-26 12:08:38 +05:30
expect(::Todos::Destroy::UnauthorizedFeaturesService).to receive(:new).with(100, nil).and_return(service)
2018-11-18 11:00:15 +05:30
expect(service).to receive(:execute)
described_class.new.perform(100)
end
end