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

22 lines
418 B
Ruby
Raw Normal View History

# frozen_string_literal: true
require 'spec_helper'
describe PipelineBackgroundQueue do
let(:worker) do
Class.new do
def self.name
'DummyWorker'
end
include ApplicationWorker
include PipelineBackgroundQueue
end
end
it 'sets a default object storage queue automatically' do
expect(worker.sidekiq_options['queue'])
2018-03-06 07:40:50 -05:00
.to eq 'pipeline_background:dummy'
end
end