diff options
author | w0rp <w0rp@users.noreply.github.com> | 2016-10-19 22:44:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-19 22:44:00 +0100 |
commit | 62195b7a68a6b92a8cbbb8bc5fad4670408ffa92 (patch) | |
tree | f3cb70c83f738dc0fc79d3cd063157a1f081e3c1 /test | |
parent | 9e4d7c1b9d9fbdad3d6f87d8a7e995ca831464a2 (diff) | |
parent | 0e6f406fe02d83e706b14c385cb5796ff84e7060 (diff) | |
download | ale-62195b7a68a6b92a8cbbb8bc5fad4670408ffa92.zip |
Merge pull request #108 from neersighted/autocmd2v1.0.0
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 |