Refine test cases by checking message output

This commit is contained in:
Alexandre Carlton 2014-11-30 21:15:46 +11:00
parent 73551bf34f
commit 4e118cf10c
2 changed files with 7 additions and 4 deletions

View File

@ -627,7 +627,8 @@ Execute (Single uninstalled executable):
call plug#begin() call plug#begin()
Plug 'junegunn/vim-easy-align', { 'needs': 'does-not-exist' } Plug 'junegunn/vim-easy-align', { 'needs': 'does-not-exist' }
call plug#end() call plug#end()
PlugInstall! PlugInstall
AssertExpect 'Please install does-not-exist first.', 0
q q
Assert !isdirectory(g:plugs['vim-easy-align'].dir), Assert !isdirectory(g:plugs['vim-easy-align'].dir),
\ 'vim-easy-align should not exist' \ 'vim-easy-align should not exist'
@ -636,7 +637,8 @@ Execute (Multiple uninstalled executables):
call plug#begin() call plug#begin()
Plug 'junegunn/vim-easy-align', { 'needs': ['does-not-exist', 'also-non-existent'] } Plug 'junegunn/vim-easy-align', { 'needs': ['does-not-exist', 'also-non-existent'] }
call plug#end() call plug#end()
PlugInstall! PlugInstall
AssertExpect 'Please install does-not-exist, also-non-existent first.', 0
q q
Assert !isdirectory(g:plugs['vim-easy-align'].dir), Assert !isdirectory(g:plugs['vim-easy-align'].dir),
\ 'vim-easy-align should not exist' \ 'vim-easy-align should not exist'
@ -645,7 +647,8 @@ Execute (Multiple uninstalled/installed executables):
call plug#begin() call plug#begin()
Plug 'junegunn/vim-easy-align', { 'needs': ['does-not-exist', 'sh'] } Plug 'junegunn/vim-easy-align', { 'needs': ['does-not-exist', 'sh'] }
call plug#end() call plug#end()
PlugInstall! PlugInstall
AssertExpect 'Please install does-not-exist first.', 0
q q
Assert !isdirectory(g:plugs['vim-easy-align'].dir), Assert !isdirectory(g:plugs['vim-easy-align'].dir),
\ 'vim-easy-align should not exist' \ 'vim-easy-align should not exist'