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

queue_spec.rb « github_import « gitlab « concerns « workers « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9c69ee32da1d9fff8c3a7f6237d1203bb2895dcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require 'spec_helper'

describe Gitlab::GithubImport::Queue do
  it 'sets the Sidekiq options for the worker' do
    worker = Class.new do
      def self.name
        'DummyWorker'
      end

      include ApplicationWorker
      include Gitlab::GithubImport::Queue
    end

    expect(worker.sidekiq_options['queue']).to eq('github_importer')
  end
end