switch to neobundle
This commit is contained in:
parent
6cef5c101f
commit
5a1c95140f
57 changed files with 9901 additions and 1958 deletions
49
.vim/bundle/neobundle.vim/test/toml.vim
Normal file
49
.vim/bundle/neobundle.vim/test/toml.vim
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
let s:suite = themis#suite('toml')
|
||||
let s:assert = themis#helper('assert')
|
||||
|
||||
let g:path = expand('~/test-bundle/'.fnamemodify(expand('<sfile>'), ':t:r'))
|
||||
|
||||
function! s:suite.before_each() abort
|
||||
let g:temp = tempname()
|
||||
call neobundle#begin(g:path)
|
||||
endfunction
|
||||
|
||||
function! s:suite.after_each() abort
|
||||
call neobundle#end()
|
||||
call delete(g:temp)
|
||||
endfunction
|
||||
|
||||
function! s:suite.no_toml() abort
|
||||
call writefile([
|
||||
\ 'foobar'
|
||||
\ ], g:temp)
|
||||
call s:assert.equals(neobundle#parser#load_toml(g:temp, {}), 1)
|
||||
endfunction
|
||||
|
||||
function! s:suite.no_plugins() abort
|
||||
call writefile([], g:temp)
|
||||
call s:assert.equals(neobundle#parser#load_toml(g:temp, {}), 1)
|
||||
endfunction
|
||||
|
||||
function! s:suite.no_repository() abort
|
||||
call writefile([
|
||||
\ "[[plugins]]",
|
||||
\ "filetypes = 'all'",
|
||||
\ "[[plugins]]",
|
||||
\ "filetypes = 'all'"
|
||||
\ ], g:temp)
|
||||
call s:assert.equals(neobundle#parser#load_toml(g:temp, {}), 1)
|
||||
endfunction
|
||||
|
||||
function! s:suite.normal() abort
|
||||
call writefile([
|
||||
\ "[[plugins]]",
|
||||
\ "repository = 'Shougo/tabpagebuffer.vim'",
|
||||
\ "filetypes = 'all'",
|
||||
\ "[[plugins]]",
|
||||
\ "repository = 'Shougo/tabpagebuffer.vim'",
|
||||
\ "filetypes = 'all'"
|
||||
\ ], g:temp)
|
||||
call s:assert.equals(neobundle#parser#load_toml(g:temp, {}), 0)
|
||||
endfunction
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue