From 51095bad9567acd50275fcb888628e20b3ea3089 Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Fri, 27 Feb 2015 22:45:12 -0500 Subject: [PATCH] fix failing tests --- t/airline.vim | 4 ++-- t/commands.vim | 4 +--- t/extensions_default.vim | 14 ++++++-------- 3 files changed, 9 insertions(+), 13 deletions(-) diff --git a/t/airline.vim b/t/airline.vim index 78ab6d7c..6e66aecc 100644 --- a/t/airline.vim +++ b/t/airline.vim @@ -1,7 +1,7 @@ let g:airline_theme = 'dark' -call airline#init#bootstrap() -call airline#init#sections() + source plugin/airline.vim +doautocmd VimEnter function! MyFuncref(...) call a:1.add_raw('hello world') diff --git a/t/commands.vim b/t/commands.vim index b56b881d..4e23d5dd 100644 --- a/t/commands.vim +++ b/t/commands.vim @@ -1,7 +1,5 @@ -call airline#init#bootstrap() -call airline#init#sections() - source plugin/airline.vim +doautocmd VimEnter describe 'commands' it 'should toggle off and on' diff --git a/t/extensions_default.vim b/t/extensions_default.vim index d6fc572d..e60d651a 100644 --- a/t/extensions_default.vim +++ b/t/extensions_default.vim @@ -1,8 +1,10 @@ -let g:airline_theme = 'dark' -call airline#init#bootstrap() -call airline#init#sections() +let g:airline#extensions#default#layout = [ + \ [ 'c', 'a', 'b', 'warning' ], + \ [ 'x', 'z', 'y' ] + \ ] + source plugin/airline.vim -call airline#load_theme() +doautocmd VimEnter describe 'default' before @@ -10,10 +12,6 @@ describe 'default' end it 'should use the layout' - let g:airline#extensions#default#layout = [ - \ [ 'c', 'a', 'b', 'warning' ], - \ [ 'x', 'z', 'y' ] - \ ] call airline#extensions#default#apply(s:builder, { 'winnr': 1, 'active': 1 }) let stl = s:builder.build() Expect stl =~ 'airline_c_to_airline_a'