summaryrefslogtreecommitdiff
path: root/test/test_autocmd_commands.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_autocmd_commands.vader')
-rw-r--r--test/test_autocmd_commands.vader2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_autocmd_commands.vader b/test/test_autocmd_commands.vader
index b02f852c..63e704bd 100644
--- a/test/test_autocmd_commands.vader
+++ b/test/test_autocmd_commands.vader
@@ -191,7 +191,7 @@ Execute (g:ale_echo_cursor = 1 should bind cursor events):
Execute (ALECleanupGroup should include the right commands):
AssertEqual [
- \ 'BufDelete * call ale#engine#Cleanup(str2nr(expand(''<abuf>'')))',
+ \ 'BufDelete * if exists(''*ale#engine#Cleanup'') | call ale#engine#Cleanup(str2nr(expand(''<abuf>''))) | endif',
\ 'QuitPre * call ale#events#QuitEvent(str2nr(expand(''<abuf>'')))',
\], CheckAutocmd('ALECleanupGroup')