gitlab-org--gitlab-foss/spec/workers/concerns/cluster_agent_queue_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
399 B
Ruby
Raw Normal View History

# 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