Welcome to mirror list, hosted at ThFree Co, Russian Federation.

project_private_worker_spec.rb « todos_destroyer « workers « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4e54fbdb2753bc3bc29f3bc01b238d6fd5d4afe9 (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::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