2019-03-30 03:15:48 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-03-06 06:20:36 -05:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-24 11:08:50 -04:00
|
|
|
RSpec.describe PipelineBackgroundQueue do
|
2018-03-06 06:20:36 -05:00
|
|
|
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'
|
2018-03-06 06:20:36 -05:00
|
|
|
end
|
|
|
|
end
|