diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-17 19:05:49 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-17 19:05:49 +0300 |
commit | 43a25d93ebdabea52f99b05e15b06250cd8f07d7 (patch) | |
tree | dceebdc68925362117480a5d672bcff122fb625b /spec/lib/gitlab/path_regex_spec.rb | |
parent | 20c84b99005abd1c82101dfeff264ac50d2df211 (diff) |
Add latest changes from gitlab-org/gitlab@16-0-stable-eev16.0.0-rc42
Diffstat (limited to 'spec/lib/gitlab/path_regex_spec.rb')
-rw-r--r-- | spec/lib/gitlab/path_regex_spec.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/lib/gitlab/path_regex_spec.rb b/spec/lib/gitlab/path_regex_spec.rb index 0a647befb50..718b20c59ed 100644 --- a/spec/lib/gitlab/path_regex_spec.rb +++ b/spec/lib/gitlab/path_regex_spec.rb @@ -177,7 +177,12 @@ RSpec.describe Gitlab::PathRegex do missing_words: missing_words, additional_words: additional_words) end - expect(described_class::TOP_LEVEL_ROUTES) + # We have to account for routes that are added by gems into the RAILS_ENV=test only. + test_only_top_level_routes = [ + '_system_test_entrypoint' # added by the view_component gem + ] + + expect(described_class::TOP_LEVEL_ROUTES + test_only_top_level_routes) .to contain_exactly(*top_level_words), failure_block end |