Fix test problem 'can_open some_repl'
This commit is contained in:
@@ -1,13 +1,15 @@
|
|||||||
" XXX: rewrite generic path
|
" XXX: rewrite generic path
|
||||||
call themis#option('runtimepath', expand('~/Repository/repl.vim'))
|
call themis#option('runtimepath', expand('~/.vim/bundle/repl.vim'))
|
||||||
|
|
||||||
" Add dependency
|
" Add dependency
|
||||||
call themis#option('runtimepath', expand('~/.vim/bundle/vimproc.vim'))
|
call themis#option('runtimepath', expand('~/.vim/bundle/vimproc.vim'))
|
||||||
call themis#option('runtimepath', expand('~/.vim/bundle/vimshell.vim'))
|
call themis#option('runtimepath', expand('~/.vim/bundle/vimshell.vim'))
|
||||||
|
|
||||||
" Util Functions
|
" Util Functions
|
||||||
function! UnletReplUserVariables() abort
|
function! ResetVariables() abort
|
||||||
|
" Unlet variable
|
||||||
unlet! g:repl_filetype_repl
|
unlet! g:repl_filetype_repl
|
||||||
unlet! g:repl_no_default_keymappings
|
unlet! g:repl_no_default_keymappings
|
||||||
unlet! g:repl_split_command
|
" Set default value
|
||||||
|
let g:repl_split_command = 'split'
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
let s:suite = themis#suite('can_open')
|
let s:suite = themis#suite('can_open')
|
||||||
|
|
||||||
function! s:suite.after_each()
|
function! s:suite.after_each()
|
||||||
call UnletReplUserVariables()
|
call ResetVariables()
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
"-------------------"
|
"-------------------"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ let s:assert = themis#helper('assert')
|
|||||||
let s:scope = themis#helper('scope')
|
let s:scope = themis#helper('scope')
|
||||||
|
|
||||||
function! s:suite.after_each()
|
function! s:suite.after_each()
|
||||||
call UnletReplUserVariables()
|
call ResetVariables()
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
"-------------------"
|
"-------------------"
|
||||||
|
|||||||
Reference in New Issue
Block a user