mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-09 12:03:48 -05:00
Add tests.
This commit is contained in:
12
test/testFileAddedToGit.vim
Normal file
12
test/testFileAddedToGit.vim
Normal file
@@ -0,0 +1,12 @@
|
||||
source helper.vim
|
||||
|
||||
let tmpfile = 'fileAddedToGit.tmp'
|
||||
call system('touch '.tmpfile)
|
||||
call system('git add '.tmpfile)
|
||||
execute 'edit '.tmpfile
|
||||
normal ihello
|
||||
write
|
||||
call DumpSigns('fileAddedToGit')
|
||||
|
||||
call system('git reset HEAD '.tmpfile)
|
||||
call system('rm '.tmpfile)
|
||||
Reference in New Issue
Block a user