diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-14 12:14:36 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-14 12:14:36 +0300 |
commit | 7bd8f9822b05eb2e8c8279678e38e7513c3612f6 (patch) | |
tree | ab85f35234e66b99a1d3400ffb4ee529a0011d6f /spec/workers/concerns | |
parent | d11616c828fa76b0fea100872b59d904560e6570 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/workers/concerns')
-rw-r--r-- | spec/workers/concerns/cluster_agent_queue_spec.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/spec/workers/concerns/cluster_agent_queue_spec.rb b/spec/workers/concerns/cluster_agent_queue_spec.rb new file mode 100644 index 00000000000..b5189cbd8c8 --- /dev/null +++ b/spec/workers/concerns/cluster_agent_queue_spec.rb @@ -0,0 +1,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 |