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

destroyed_designs_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: 113faeb0d2ff9ffd9668729f2860f6b02dfb0844 (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::DestroyedDesignsWorker do
  let(:service) { double }

  it 'calls the Todos::Destroy::DesignService with design_ids parameter' do
    expect(::Todos::Destroy::DesignService).to receive(:new).with([1, 5]).and_return(service)
    expect(service).to receive(:execute)

    described_class.new.perform([1, 5])
  end
end