2019-03-30 03:15:48 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-10-04 10:26:56 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe ClusterQueue do
|
|
|
|
let(:worker) do
|
|
|
|
Class.new do
|
2017-11-28 11:08:30 -05:00
|
|
|
def self.name
|
|
|
|
'DummyWorker'
|
|
|
|
end
|
|
|
|
|
|
|
|
include ApplicationWorker
|
2017-10-04 10:26:56 -04:00
|
|
|
include ClusterQueue
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'sets a default pipelines queue automatically' do
|
|
|
|
expect(worker.sidekiq_options['queue'])
|
2017-11-28 11:16:50 -05:00
|
|
|
.to eq 'gcp_cluster:dummy'
|
2017-10-04 10:26:56 -04:00
|
|
|
end
|
|
|
|
end
|