summaryrefslogtreecommitdiff
path: root/test/test_autocmd_commands.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-10-14 23:22:13 +0100
committerw0rp <devw0rp@gmail.com>2017-10-14 23:22:13 +0100
commitef495ba32db2b0c21e73e2ef0034de6888854587 (patch)
tree75b3701d9dbc4d4cdac0c991b921a0dbd776897a /test/test_autocmd_commands.vader
parent010ebc2459d2ce72d8c264737a9faa4ac694dbe5 (diff)
downloadale-ef495ba32db2b0c21e73e2ef0034de6888854587.zip
#904 Do not run linters on :wq or :x
Diffstat (limited to 'test/test_autocmd_commands.vader')
-rw-r--r--test/test_autocmd_commands.vader6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_autocmd_commands.vader b/test/test_autocmd_commands.vader
index 2685f50b..17e3b16d 100644
--- a/test/test_autocmd_commands.vader
+++ b/test/test_autocmd_commands.vader
@@ -199,6 +199,12 @@ Execute (g:ale_echo_cursor = 1 should bind cursor events):
\ 'InsertLeave * call ale#cursor#EchoCursorWarning()',
\], CheckAutocmd('ALECursorGroup')
+Execute (ALECleanupGroup should include the right commands):
+ AssertEqual [
+ \ 'BufUnload * call ale#engine#Cleanup(str2nr(expand(''<abuf>'')))',
+ \ 'QuitPre * call ale#events#QuitEvent(str2nr(expand(''<abuf>'')))',
+ \], CheckAutocmd('ALECleanupGroup')
+
Execute(Enabling completion should set up autocmd events correctly):
let g:ale_completion_enabled = 0
call ale#completion#Enable()