Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
e52add54
Commit
e52add54
authored
Jul 27, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Gitlab::PathRegex specs
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
bd3fd863
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
lib/gitlab/path_regex.rb
lib/gitlab/path_regex.rb
+2
-0
spec/lib/gitlab/path_regex_spec.rb
spec/lib/gitlab/path_regex_spec.rb
+2
-2
No files found.
lib/gitlab/path_regex.rb
View file @
e52add54
...
...
@@ -33,6 +33,8 @@ module Gitlab
favicon.ico
files
groups
header_logo_dark.png
header_logo_light.png
health_check
help
import
...
...
spec/lib/gitlab/path_regex_spec.rb
View file @
e52add54
...
...
@@ -86,7 +86,7 @@ describe Gitlab::PathRegex, lib: true do
route
.
split
(
'/'
)[
1
]
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
let
(
:ee_top_level_words
)
do
...
...
@@ -143,7 +143,7 @@ describe Gitlab::PathRegex, lib: true do
let
(
:paths_after_group_id
)
do
group_routes
.
map
do
|
route
|
route
.
gsub
(
STARTING_WITH_GROUP
,
''
).
split
(
'/'
).
first
end
.
uniq
+
ee_paths_after_group_id
end
.
uniq
end
let
(
:ee_paths_after_group_id
)
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment