Commit d9461d69 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Merge branch 'cherry-pick-7b8d754e-ce' into 'master'

Adjust spec to build correct path when storage path ends in slash

See merge request gitlab-org/gitlab-ce!18843
parents b63cd070 9da52c6f
...@@ -283,7 +283,7 @@ describe ProjectsHelper do ...@@ -283,7 +283,7 @@ describe ProjectsHelper do
end end
it 'removes the repo path' do it 'removes the repo path' do
repo = "#{storage_path}/namespace/test.git" repo = File.join(storage_path, 'namespace/test.git')
import_error = "Could not clone #{repo}\n" import_error = "Could not clone #{repo}\n"
expect(sanitize_repo_path(project, import_error)).to eq('Could not clone [REPOS PATH]/namespace/test.git') expect(sanitize_repo_path(project, import_error)).to eq('Could not clone [REPOS PATH]/namespace/test.git')
......
Markdown is supported
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