Commit 7b405163 authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

RSPec tests: fixed test about top-level routes

It was based on `git ls-files` in the `public` subdir
parent 02c227784bd2
......@@ -110,8 +110,10 @@
let(:files_in_public) do
git = Gitlab.config.git.bin_path
tracked = `cd #{Rails.root} && #{git} ls-files public`
hg = Gitlab.config.mercurial.bin_path
# If it becomes a problem not to have some extensions (evolve etc),
# we can do this hg call more properly with HGRCPATH etc.
tracked = `cd #{Rails.root} && #{hg} files public`
.map { |entry| entry.start_with?('public/-/') ? '-' : entry.gsub('public/', '') }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment