Fix #114 - &rtp should not contain empty path

This commit is contained in:
Junegunn Choi
2014-10-22 13:36:57 +09:00
parent bd2cb9d2de
commit 425ef39db2
2 changed files with 13 additions and 2 deletions

View File

@@ -1089,6 +1089,16 @@ Execute (PlugSnapshot):
AssertEqual 'snapshot.sh', fnamemodify(expand('%'), ':t')
q
**********************************************************************
Execute (#114 Should not contain empty path in &rtp):
call plug#begin('$TMPDIR/plugged')
call plug#end()
Log &rtp
Assert &rtp !~ ',,', 'Commas'
Assert &rtp !~ '^,', 'Comma prefix'
Assert &rtp !~ ',$', 'Comma suffix'
Execute (Cleanup):
silent! call system('rm -rf '.temp_plugged)
silent! call system('rm -rf '.temp_plugged)