summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2017-07-25 13:48:30 +0200
committerBob Van Landuyt <bob@vanlanduyt.co>2017-07-25 14:51:36 +0200
commitad46c8878b3102f74e211ef72ff5347b89aee14c (patch)
treebe8d9552e272f464c8ae72c71ab7e41bc4d9c3be
parent2a067bb37cdd4b00abf742c4e221397ee86dcf0c (diff)
downloadgitlab-ce-bvl-fix-api-in-path-regex.tar.gz
Add `api` prefix as a top level route in the spec.bvl-fix-api-in-path-regex
Now that it has been removed from the rails routes. But it still needs to be a reserved top-level word, so the tests should know about this.
-rw-r--r--spec/lib/gitlab/path_regex_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/path_regex_spec.rb b/spec/lib/gitlab/path_regex_spec.rb
index c38bbb64fc3..20be743d224 100644
--- a/spec/lib/gitlab/path_regex_spec.rb
+++ b/spec/lib/gitlab/path_regex_spec.rb
@@ -86,7 +86,7 @@ describe Gitlab::PathRegex, lib: true do
route.split('/')[1]
end.compact.uniq
- words + ee_top_level_words + files_in_public
+ words + ee_top_level_words + files_in_public + Array(API::API.prefix.to_s)
end
let(:ee_top_level_words) do