From ad46c8878b3102f74e211ef72ff5347b89aee14c Mon Sep 17 00:00:00 2001 From: Bob Van Landuyt Date: Tue, 25 Jul 2017 13:48:30 +0200 Subject: 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. --- spec/lib/gitlab/path_regex_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec') 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 -- cgit v1.2.1