debian-mirror-gitlab/spec/workers/concerns/pipeline_queue_spec.rb

20 lines
359 B
Ruby
Raw Normal View History

2016-11-03 12:29:30 +05:30
require 'spec_helper'
describe PipelineQueue do
let(:worker) do
Class.new do
2018-03-17 18:26:18 +05:30
def self.name
'DummyWorker'
end
include ApplicationWorker
2016-11-03 12:29:30 +05:30
include PipelineQueue
end
end
2018-03-17 18:26:18 +05:30
it 'sets a default pipelines queue automatically' do
expect(worker.sidekiq_options['queue'])
.to eq 'pipeline_default:dummy'
2016-11-03 12:29:30 +05:30
end
end