diff options
author | w0rp <devw0rp@gmail.com> | 2017-07-14 00:29:35 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-07-14 00:33:12 +0100 |
commit | 5afbc9b701a485d86a1d372ce2a8b03408e84235 (patch) | |
tree | 25786f40d0a0743f06ede9152f72d6cb52df0f13 /test/test_alelint_autocmd.vader | |
parent | 4c50aec79c158a61de27f273e1d338fb1d817021 (diff) | |
download | ale-5afbc9b701a485d86a1d372ce2a8b03408e84235.zip |
Simplify the tests for the ALELint autocmd command
Diffstat (limited to 'test/test_alelint_autocmd.vader')
-rw-r--r-- | test/test_alelint_autocmd.vader | 18 |
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 |