Fix test problem 'can_open some_repl'
This commit is contained in:
parent
afc8d860f6
commit
6f811e0ecb
@ -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
|
||||
|
@ -1,7 +1,7 @@
|
||||
let s:suite = themis#suite('can_open')
|
||||
|
||||
function! s:suite.after_each()
|
||||
call UnletReplUserVariables()
|
||||
call ResetVariables()
|
||||
endfunction
|
||||
|
||||
"-------------------"
|
||||
|
@ -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
|
||||
|
||||
"-------------------"
|
||||
|
Reference in New Issue
Block a user