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

20 lines
359 B
Ruby
Raw Normal View History

require 'spec_helper'
describe PipelineQueue do
let(:worker) do
Class.new do
def self.name
'DummyWorker'
end
include ApplicationWorker
include PipelineQueue
end
end
it 'sets a default pipelines queue automatically' do
expect(worker.sidekiq_options['queue'])
2017-11-28 11:16:50 -05:00
.to eq 'pipeline_default:dummy'
end
end