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

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

require 'spec_helper'

RSpec.describe PipelineBackgroundQueue do
  let(:worker) do
    Class.new do
      def self.name
        'DummyWorker'
      end

      include ApplicationWorker
      include PipelineBackgroundQueue
    end
  end

  it 'sets a default object storage queue automatically' do
    expect(worker.sidekiq_options['queue'])
      .to eq 'pipeline_background:dummy'
  end
end