summaryrefslogtreecommitdiff
path: root/test/test_alelint_autocmd.vader
diff options
context:
space:
mode:
authorBjorn Neergaard <bjorn@neersighted.com>2016-10-13 09:06:03 -0500
committerBjorn Neergaard <bjorn@neersighted.com>2016-10-17 20:14:21 -0500
commit0e6f406fe02d83e706b14c385cb5796ff84e7060 (patch)
treef6ec050fce35eedb011eed543aec3e0a55fcc117 /test/test_alelint_autocmd.vader
parent02e42feeaafde1cb2677e798d898c58cc4c40a26 (diff)
downloadale-0e6f406fe02d83e706b14c385cb5796ff84e7060.zip
Add autocommand test
Diffstat (limited to 'test/test_alelint_autocmd.vader')
-rw-r--r--test/test_alelint_autocmd.vader17
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