mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-09 20:13:46 -05:00
Refactor tests to be isolated.
This commit is contained in:
15
test/helper.vim
Normal file
15
test/helper.vim
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user