Adjust spec to build correct path when storage path ends in slash
This commit is contained in:
parent
2de674483a
commit
9da52c6fc1
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue