summaryrefslogtreecommitdiff
path: root/test/test_alelint_autocmd.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_alelint_autocmd.vader')
-rw-r--r--test/test_alelint_autocmd.vader18
1 files changed, 6 insertions, 12 deletions
diff --git a/test/test_alelint_autocmd.vader b/test/test_alelint_autocmd.vader
index eeb74ee5..4503005b 100644
--- a/test/test_alelint_autocmd.vader
+++ b/test/test_alelint_autocmd.vader
@@ -2,23 +2,17 @@ Before:
let g:success = 0
let g:ale_run_synchronously = 1
- augroup VaderTest
- autocmd!
- autocmd User ALELint let g:success = 1
- augroup end
-
After:
let g:ale_run_synchronously = 0
-
- augroup! VaderTest
let g:ale_buffer_info = {}
+ augroup! VaderTest
-Given vim (Some vimscript):
- set nocompatible
+Execute (Run a lint cycle, and check that a variable is set in the autocmd):
+ augroup VaderTest
+ autocmd!
+ autocmd User ALELint let g:success = 1
+ augroup end
-Execute (Lint it):
call ale#Lint()
- call ale#engine#WaitForJobs(2000)
-Then (Autocommands should have run):
AssertEqual g:success, 1