gitlab-org--gitlab-foss/spec/workers/concerns/build_queue_spec.rb

15 lines
267 B
Ruby
Raw Normal View History

require 'spec_helper'
describe BuildQueue do
let(:worker) do
Class.new do
include Sidekiq::Worker
include BuildQueue
end
end
it 'sets the queue name of a worker' do
expect(worker.sidekiq_options['queue'].to_s).to eq('build')
end
end