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

export_csv_worker_spec.rb « workers « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 88ccfac0a021caf53af8e8e8ef2c3dcb41dbc06b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe ExportCsvWorker do
  let(:user) { create(:user) }
  let(:project) { create(:project, creator: user) }

  def perform(params = {})
    described_class.new.perform(user.id, project.id, params)
  end

  it 'delegates call to IssuableExportCsvWorker' do
    expect(IssuableExportCsvWorker).to receive(:perform_async).with(:issue, user.id, project.id, anything)

    perform
  end
end