diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-01 15:10:00 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-01 15:10:00 +0000 |
commit | 8b1036168b0d395c379cbbaf457e256860147405 (patch) | |
tree | cd9f06daf5ef1f0f24137540bb1382d3e26c0bb6 /spec/config | |
parent | 52522f10237f685c2535e6511d632bacdc7f6a78 (diff) | |
download | gitlab-ce-8b1036168b0d395c379cbbaf457e256860147405.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/config')
-rw-r--r-- | spec/config/settings_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/config/settings_spec.rb b/spec/config/settings_spec.rb index d344a0e28e6..b464a4eee8b 100644 --- a/spec/config/settings_spec.rb +++ b/spec/config/settings_spec.rb @@ -198,4 +198,18 @@ RSpec.describe Settings, feature_category: :system_access do end end end + + describe '.build_sidekiq_routing_rules' do + using RSpec::Parameterized::TableSyntax + + where(:input_rules, :result) do + nil | [['*', nil]] + [] | [['*', nil]] + [['name=foobar', 'foobar']] | [['name=foobar', 'foobar']] + end + + with_them do + it { expect(described_class.send(:build_sidekiq_routing_rules, input_rules)).to eq(result) } + end + end end |