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.
This commit is contained in:
Bob Van Landuyt 2017-07-25 13:48:30 +02:00
parent 2a067bb37c
commit ad46c8878b

View file

@ -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