diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-05 12:10:23 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-05 12:10:23 +0000 |
commit | 7e964f54ed3dd08ed528481843ba1972684335dc (patch) | |
tree | 633ea7d7473ecea5385f1c98d3a67103e0b5fcb3 /spec/workers | |
parent | b5e513dbefdc7d27ddfd800c81b80e55f086f3f5 (diff) | |
download | gitlab-ce-7e964f54ed3dd08ed528481843ba1972684335dc.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/workers')
-rw-r--r-- | spec/workers/concerns/application_worker_spec.rb | 2 | ||||
-rw-r--r-- | spec/workers/every_sidekiq_worker_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/workers/concerns/application_worker_spec.rb b/spec/workers/concerns/application_worker_spec.rb index 95d9b982fc4..707fa0c9c78 100644 --- a/spec/workers/concerns/application_worker_spec.rb +++ b/spec/workers/concerns/application_worker_spec.rb @@ -49,7 +49,7 @@ RSpec.describe ApplicationWorker do worker.feature_category :pages expect(worker.sidekiq_options['queue']).to eq('queue_2') - worker.feature_category_not_owned! + worker.feature_category :not_owned expect(worker.sidekiq_options['queue']).to eq('queue_3') worker.urgency :high diff --git a/spec/workers/every_sidekiq_worker_spec.rb b/spec/workers/every_sidekiq_worker_spec.rb index 47205943f70..0351b500747 100644 --- a/spec/workers/every_sidekiq_worker_spec.rb +++ b/spec/workers/every_sidekiq_worker_spec.rb @@ -54,7 +54,7 @@ RSpec.describe 'Every Sidekiq worker' do # All Sidekiq worker classes should declare a valid `feature_category` # or explicitly be excluded with the `feature_category_not_owned!` annotation. # Please see doc/development/sidekiq_style_guide.md#feature-categorization for more details. - it 'has a feature_category or feature_category_not_owned! attribute', :aggregate_failures do + it 'has a feature_category attribute', :aggregate_failures do workers_without_defaults.each do |worker| expect(worker.get_feature_category).to be_a(Symbol), "expected #{worker.inspect} to declare a feature_category or feature_category_not_owned!" end |