Adjust spec to build correct path when storage path ends in slash
This commit is contained in:
parent
2de674483a
commit
9da52c6fc1
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue