22 lines
396 B
Ruby
22 lines
396 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
require 'spec_helper'
|
||
|
|
||
|
RSpec.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'])
|
||
|
.to eq 'pipeline_default:dummy'
|
||
|
end
|
||
|
end
|