#274 - Fix airline integration when ALE is not loaded fully

This commit is contained in:
w0rp committed 2017-02-13 23:31:29 +00:00
1 parent c0814934af
commit f39e88cfa8
2 files changed
+31

No files matched your search

@@ -0,0 +1,19 @@
" This file tests that statusline functions return meaningful output even
" when most of ALE itself has not been loaded.
"
" This is important for plugins which integrate with ALE like airline.
Before:
unlet! g:ale_buffer_info
After:
let g:ale_buffer_info = {}
Execute(ale#statusline#Update shouldn't blow up when globals are undefined):
call ale#statusline#Update(1, [])
Execute(ale#statusline#Count should return 0 counts when globals are undefined):
AssertEqual [0, 0], ale#statusline#Count(1)
Execute(ale#statusline#Status should return 'OK' when globals are undefined):
AssertEqual 'OK', ale#statusline#Status()