From 5afbc9b701a485d86a1d372ce2a8b03408e84235 Mon Sep 17 00:00:00 2001 From: w0rp Date: Fri, 14 Jul 2017 00:29:35 +0100 Subject: [PATCH] Simplify the tests for the ALELint autocmd command --- test/test_alelint_autocmd.vader | 18 ++++++------------ 1 file 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 +After: + let g:ale_run_synchronously = 0 + let g:ale_buffer_info = {} + augroup! VaderTest + +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 -After: - let g:ale_run_synchronously = 0 - - augroup! VaderTest - let g:ale_buffer_info = {} - -Given vim (Some vimscript): - set nocompatible - -Execute (Lint it): call ale#Lint() - call ale#engine#WaitForJobs(2000) -Then (Autocommands should have run): AssertEqual g:success, 1