Fix tests for the changed default separators

This commit is contained in:
Christian Brabandt
2017-02-24 22:33:07 +01:00
parent 078537f1e2
commit d624a44500
3 changed files with 14 additions and 14 deletions

View File

@@ -57,13 +57,13 @@ describe 'section'
it 'should force add separators for raw and missing keys'
let s = airline#section#create_left(['asdf', 'raw'])
Expect s == 'asdf > raw'
Expect s == 'asdf raw'
let s = airline#section#create_left(['asdf', 'aaaa', 'raw'])
Expect s == 'asdf > aaaa > raw'
Expect s == 'asdf aaaa raw'
let s = airline#section#create_right(['raw', '%f'])
Expect s == 'raw < %f'
Expect s == 'raw %f'
let s = airline#section#create_right(['%t', 'asdf', '%{getcwd()}'])
Expect s == '%t < asdf < %{getcwd()}'
Expect s == '%t asdf %{getcwd()}'
end
it 'should empty out parts that do not pass their condition'