BigW Consortium Gitlab

cluster_queue_spec.rb 352 Bytes
Newer Older
1 2 3 4 5
require 'spec_helper'

describe ClusterQueue do
  let(:worker) do
    Class.new do
6 7 8 9 10
      def self.name
        'DummyWorker'
      end

      include ApplicationWorker
11 12 13 14 15 16
      include ClusterQueue
    end
  end

  it 'sets a default pipelines queue automatically' do
    expect(worker.sidekiq_options['queue'])
17
      .to eq 'gcp_cluster:dummy'
18 19
  end
end