correctly inject the accent highlight groups.

This commit is contained in:
Bailey Ling
2013-09-15 22:47:13 -04:00
parent 858ef19a6f
commit 02aa620a92
4 changed files with 13 additions and 6 deletions

View File

@@ -26,13 +26,13 @@ describe 'section'
Expect s == '%{airline#util#prepend("text",0)}%{airline#util#wrap("text",0)}'
end
it 'should prefix with highlight group if provided'
it 'should prefix with accent group if provided'
call airline#parts#define('hi', {
\ 'raw': 'hello',
\ 'highlight': 'hlgroup',
\ 'accent': 'red',
\ })
let s = airline#section#create(['hi'])
Expect s == '%#hlgroup#hello'
Expect s == '%#airline_accent_red#hello'
end
it 'should parse out a section from the distro'