Fix test problem 'can_open some_repl'

This commit is contained in:
aiya000 2015-12-24 21:58:21 +09:00
parent afc8d860f6
commit 6f811e0ecb
3 changed files with 7 additions and 5 deletions

View File

@ -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

View File

@ -1,7 +1,7 @@
let s:suite = themis#suite('can_open')
function! s:suite.after_each()
call UnletReplUserVariables()
call ResetVariables()
endfunction
"-------------------"

View File

@ -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
"-------------------"