mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-06 12:14:24 +08:00
allow parts to be defined in the vimrc as overrides. resolves #284.
This commit is contained in:
13
t/init.vim
13
t/init.vim
@@ -6,10 +6,11 @@ function! s:clear()
|
||||
endfor
|
||||
endfunction
|
||||
|
||||
describe 'init'
|
||||
call airline#init#bootstrap()
|
||||
|
||||
describe 'init sections'
|
||||
before
|
||||
call s:clear()
|
||||
call airline#init#bootstrap()
|
||||
call airline#init#sections()
|
||||
end
|
||||
|
||||
@@ -65,3 +66,11 @@ describe 'init'
|
||||
end
|
||||
end
|
||||
|
||||
describe 'init parts'
|
||||
it 'should not redefine parts already defined'
|
||||
call airline#parts#define_raw('linenr', 'bar')
|
||||
call airline#init#sections()
|
||||
Expect g:airline_section_z =~ 'bar'
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user