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

This commit is contained in:
Douwe Maan 2018-05-09 12:28:16 +02:00
parent 2de674483a
commit 9da52c6fc1
No known key found for this signature in database
GPG Key ID: 5976703F65143D36
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ describe ProjectsHelper do
end
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"
expect(sanitize_repo_path(project, import_error)).to eq('Could not clone [REPOS PATH]/namespace/test.git')