debian-mirror-gitlab/spec/workers/concerns/cluster_queue_spec.rb
2020-08-09 17:44:08 +05:30

21 lines
389 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe ClusterQueue do
let(:worker) do
Class.new do
def self.name
'DummyWorker'
end
include ApplicationWorker
include ClusterQueue
end
end
it 'sets a default pipelines queue automatically' do
expect(worker.sidekiq_options['queue'])
.to eq 'gcp_cluster:dummy'
end
end