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'])
|
|
|
|
.to eq :gcp_cluster
|
|
|
|
end
|
|
|
|
end
|