mirror of
https://github.com/junegunn/vim-plug.git
synced 2024-12-19 18:47:29 -07:00
Test against multiple versions of Ruby
As discussed in junegunn/vim-plug#31
This commit is contained in:
parent
4ae2e879e1
commit
8da7b50fb2
@ -1,4 +1,7 @@
|
|||||||
language: vim
|
language: ruby
|
||||||
|
rvm:
|
||||||
|
- 1.8.7
|
||||||
|
- 2.0.0
|
||||||
|
|
||||||
before_script: |
|
before_script: |
|
||||||
hg clone https://code.google.com/p/vim/
|
hg clone https://code.google.com/p/vim/
|
||||||
|
@ -33,6 +33,12 @@ Execute (Initialize test environment):
|
|||||||
endfunction
|
endfunction
|
||||||
command! -nargs=+ -bang AssertExpect call AssertExpect('<bang>' == '!', <args>)
|
command! -nargs=+ -bang AssertExpect call AssertExpect('<bang>' == '!', <args>)
|
||||||
|
|
||||||
|
Execute (Print Ruby version):
|
||||||
|
redir => out
|
||||||
|
silent ruby puts RUBY_VERSION
|
||||||
|
redir END
|
||||||
|
Log substitute(out, '\n', '', 'g')
|
||||||
|
|
||||||
Execute (plug#end() before plug#begin() should fail):
|
Execute (plug#end() before plug#begin() should fail):
|
||||||
redir => out
|
redir => out
|
||||||
AssertEqual 0, plug#end()
|
AssertEqual 0, plug#end()
|
||||||
@ -506,15 +512,15 @@ Execute (Frozen plugin are not installed nor updated):
|
|||||||
Plug 'junegunn/vim-easy-align', { 'frozen': 1 }
|
Plug 'junegunn/vim-easy-align', { 'frozen': 1 }
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
redir => output
|
redir => out
|
||||||
silent PlugInstall
|
silent PlugInstall
|
||||||
redir END
|
redir END
|
||||||
Assert output =~ 'No plugin to install'
|
Assert out =~ 'No plugin to install'
|
||||||
|
|
||||||
redir => output
|
redir => out
|
||||||
silent PlugUpdate
|
silent PlugUpdate
|
||||||
redir END
|
redir END
|
||||||
Assert output =~ 'No plugin to update'
|
Assert out =~ 'No plugin to update'
|
||||||
|
|
||||||
Execute (But you can still install it if the name is given as the argument):
|
Execute (But you can still install it if the name is given as the argument):
|
||||||
PlugInstall vim-easy-align
|
PlugInstall vim-easy-align
|
||||||
|
Loading…
Reference in New Issue
Block a user