diff --git a/test/.themisrc b/test/.themisrc index e4d6dcd..71775be 100644 --- a/test/.themisrc +++ b/test/.themisrc @@ -1,13 +1,15 @@ " XXX: rewrite generic path -call themis#option('runtimepath', expand('~/Repository/repl.vim')) +call themis#option('runtimepath', expand('~/.vim/bundle/repl.vim')) " Add dependency call themis#option('runtimepath', expand('~/.vim/bundle/vimproc.vim')) call themis#option('runtimepath', expand('~/.vim/bundle/vimshell.vim')) " Util Functions -function! UnletReplUserVariables() abort +function! ResetVariables() abort + " Unlet variable unlet! g:repl_filetype_repl unlet! g:repl_no_default_keymappings - unlet! g:repl_split_command + " Set default value + let g:repl_split_command = 'split' endfunction diff --git a/test/can_open.vim b/test/can_open.vim index 695e19f..698a9f1 100644 --- a/test/can_open.vim +++ b/test/can_open.vim @@ -1,7 +1,7 @@ let s:suite = themis#suite('can_open') function! s:suite.after_each() - call UnletReplUserVariables() + call ResetVariables() endfunction "-------------------" diff --git a/test/variable.vim b/test/variable.vim index 70ae75f..9b0c6e5 100644 --- a/test/variable.vim +++ b/test/variable.vim @@ -3,7 +3,7 @@ let s:assert = themis#helper('assert') let s:scope = themis#helper('scope') function! s:suite.after_each() - call UnletReplUserVariables() + call ResetVariables() endfunction "-------------------"