summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2018-05-09 12:28:16 +0200
committerDouwe Maan <douwe@selenight.nl>2018-05-09 12:56:03 +0200
commit9da52c6fc1d70cd4eae6f3a5165f176cadeb3504 (patch)
tree833ee465dc6d97f27443b00bf600df11c2eac544
parent2de674483aa881461d7afc55ee0d2fd7d9685806 (diff)
downloadgitlab-ce-9da52c6fc1d70cd4eae6f3a5165f176cadeb3504.tar.gz
Adjust spec to build correct path when storage path ends in slash
-rw-r--r--spec/helpers/projects_helper_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/helpers/projects_helper_spec.rb b/spec/helpers/projects_helper_spec.rb
index 8fcb175416f..f8877b6d1aa 100644
--- a/spec/helpers/projects_helper_spec.rb
+++ b/spec/helpers/projects_helper_spec.rb
@@ -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')