summaryrefslogtreecommitdiff
path: root/spec/workers/concerns/gitlab/github_import/queue_spec.rb
blob: d262bc2e05c93747dc58328d494b86da19751ecf (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'

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:dummy')
  end
end