diff --git a/test/.themisrc b/test/.themisrc new file mode 100644 index 0000000..09b8210 --- /dev/null +++ b/test/.themisrc @@ -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 diff --git a/test/can_open.vim b/test/can_open.vim new file mode 100644 index 0000000..e6e6d6f --- /dev/null +++ b/test/can_open.vim @@ -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