define default statusline items with empty contents.

This commit is contained in:
Bailey Ling
2013-08-31 03:35:23 +00:00
parent 500ecf7cd0
commit a13c692529
3 changed files with 36 additions and 22 deletions

View File

@@ -22,9 +22,8 @@ describe 'init'
Expect g:airline_section_a =~ 'iminsert'
end
it 'section b should have hunks and branch'
Expect g:airline_section_b =~ 'hunks'
Expect g:airline_section_b =~ 'branch'
it 'section b should be blank because no extensions are installed'
Expect g:airline_section_b == ''
end
it 'section c should be file'
@@ -55,5 +54,12 @@ describe 'init'
Expect g:airline_section_{s} == s
endfor
end
it 'all default statusline extensions should be blank'
Expect airline#parts#get('hunks').raw == ''
Expect airline#parts#get('branch').raw == ''
Expect airline#parts#get('tagbar').raw == ''
Expect airline#parts#get('syntastic').raw == ''
end
end