allow parts to be defined in the vimrc as overrides. resolves #284.

This commit is contained in:
Bailey Ling
2013-09-25 18:48:18 +00:00
parent c869665b16
commit e507f481a2
3 changed files with 22 additions and 5 deletions

View File

@@ -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