summaryrefslogtreecommitdiff
path: root/spec/workers/concerns/cluster_agent_queue_spec.rb
blob: b5189cbd8c84efff0a34392aaf7fc1814c2b5620 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe ClusterAgentQueue do
  let(:worker) do
    Class.new do
      def self.name
        'ExampleWorker'
      end

      include ApplicationWorker
      include ClusterAgentQueue
    end
  end

  it { expect(worker.queue).to eq('cluster_agent:example') }
  it { expect(worker.get_feature_category).to eq(:kubernetes_management) }
end