Refactor tests to be isolated.

This commit is contained in:
Andy Stewart
2014-11-13 12:32:42 +01:00
parent a82bc509a9
commit b9f4173f7c
14 changed files with 92 additions and 100 deletions

15
test/helper.vim Normal file
View File

@@ -0,0 +1,15 @@
set runtimepath+=../
source ../plugin/gitgutter.vim
function! Setup()
call system('git checkout fixture.txt')
edit! fixture.txt
sign unplace *
endfunction
function! DumpSigns(filename)
execute 'redir! > ' a:filename.'.out'
silent execute 'sign place'
redir END
endfunction