Commit e52add54 authored by Rémy Coutable's avatar Rémy Coutable

Fix Gitlab::PathRegex specs

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent bd3fd863
...@@ -33,6 +33,8 @@ module Gitlab ...@@ -33,6 +33,8 @@ module Gitlab
favicon.ico favicon.ico
files files
groups groups
header_logo_dark.png
header_logo_light.png
health_check health_check
help help
import import
......
...@@ -86,7 +86,7 @@ describe Gitlab::PathRegex, lib: true do ...@@ -86,7 +86,7 @@ describe Gitlab::PathRegex, lib: true do
route.split('/')[1] route.split('/')[1]
end.compact.uniq end.compact.uniq
words + ee_top_level_words + files_in_public + Array(API::API.prefix.to_s) words + files_in_public + Array(API::API.prefix.to_s)
end end
let(:ee_top_level_words) do let(:ee_top_level_words) do
...@@ -143,7 +143,7 @@ describe Gitlab::PathRegex, lib: true do ...@@ -143,7 +143,7 @@ describe Gitlab::PathRegex, lib: true do
let(:paths_after_group_id) do let(:paths_after_group_id) do
group_routes.map do |route| group_routes.map do |route|
route.gsub(STARTING_WITH_GROUP, '').split('/').first route.gsub(STARTING_WITH_GROUP, '').split('/').first
end.uniq + ee_paths_after_group_id end.uniq
end end
let(:ee_paths_after_group_id) do let(:ee_paths_after_group_id) do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment