Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/gitlab/path_regex_spec.rb')
-rw-r--r--spec/lib/gitlab/path_regex_spec.rb7
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