debian-mirror-gitlab/spec/workers/concerns/pipeline_queue_spec.rb
2016-11-03 12:29:30 +05:30

14 lines
276 B
Ruby

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