diff options
author | Bjorn Neergaard <bjorn@neersighted.com> | 2016-10-13 09:06:03 -0500 |
---|---|---|
committer | Bjorn Neergaard <bjorn@neersighted.com> | 2016-10-17 20:14:21 -0500 |
commit | 0e6f406fe02d83e706b14c385cb5796ff84e7060 (patch) | |
tree | f6ec050fce35eedb011eed543aec3e0a55fcc117 /test | |
parent | 02e42feeaafde1cb2677e798d898c58cc4c40a26 (diff) | |
download | ale-0e6f406fe02d83e706b14c385cb5796ff84e7060.zip |
Add autocommand test
Diffstat (limited to 'test')
-rw-r--r-- | test/test_alelint_autocmd.vader | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/test_alelint_autocmd.vader b/test/test_alelint_autocmd.vader new file mode 100644 index 00000000..a08ac00e --- /dev/null +++ b/test/test_alelint_autocmd.vader @@ -0,0 +1,17 @@ +Before: + let g:success = 0 + augroup VaderTest + autocmd! + autocmd User ALELint let g:success = 1 + augroup end + +After: + augroup! VaderTest + +Given vim (Vimscript): + set nocompatible +Execute (Run ALE): + call ale#Lint() + call ale#engine#WaitForJobs(2000) +Then (Autocommand should have run): + AssertEqual g:success, 1 |