Skip to content
Snippets Groups Projects
Unverified Commit 7b8d754e authored by Douwe Maan's avatar Douwe Maan
Browse files

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

parent a3d387c4
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -292,7 +292,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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment