Create test/can_open.vim
This commit is contained in:
parent
9171179f16
commit
dd286da039
12
test/.themisrc
Normal file
12
test/.themisrc
Normal file
@ -0,0 +1,12 @@
|
||||
" XXX: rewrite generic path
|
||||
call themis#option('runtimepath', expand('~/Repository/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
|
||||
unlet! g:repl_filetype_repl
|
||||
unlet! g:repl_split_command
|
||||
endfunction
|
23
test/can_open.vim
Normal file
23
test/can_open.vim
Normal file
@ -0,0 +1,23 @@
|
||||
let s:suite = themis#suite('can_open')
|
||||
|
||||
function! s:suite.after_each()
|
||||
call UnletReplUserVariables()
|
||||
endfunction
|
||||
|
||||
"-------------------"
|
||||
|
||||
function! s:suite.some_repl()
|
||||
" repl.vim can open repl
|
||||
setfiletype ruby | Repl
|
||||
new | setfiletype haskell | Repl
|
||||
new | setfiletype erlang | Repl
|
||||
new | setfiletype python | Repl
|
||||
" repl.vim cannot open repl
|
||||
" but repl.vim don't throw some exception
|
||||
new | setfiletype unknown | Repl
|
||||
endfunction
|
||||
|
||||
function! s:suite.some_repl_with_split_command()
|
||||
let g:repl_split_command = 'vertical split'
|
||||
call s:suite.some_repl()
|
||||
endfunction
|
Reference in New Issue
Block a user