diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-07-25 14:48:30 +0300 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-07-25 15:51:36 +0300 |
commit | ad46c8878b3102f74e211ef72ff5347b89aee14c (patch) | |
tree | be8d9552e272f464c8ae72c71ab7e41bc4d9c3be /spec/lib/gitlab/path_regex_spec.rb | |
parent | 2a067bb37cdd4b00abf742c4e221397ee86dcf0c (diff) |
Add `api` prefix as a top level route in the spec.
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.
Diffstat (limited to 'spec/lib/gitlab/path_regex_spec.rb')
-rw-r--r-- | spec/lib/gitlab/path_regex_spec.rb | 2 |
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 |