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

View File

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

View File

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