diff options
author | w0rp <devw0rp@gmail.com> | 2017-10-14 23:22:13 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-10-14 23:22:13 +0100 |
commit | ef495ba32db2b0c21e73e2ef0034de6888854587 (patch) | |
tree | 75b3701d9dbc4d4cdac0c991b921a0dbd776897a /test/test_quitting_variable.vader | |
parent | 010ebc2459d2ce72d8c264737a9faa4ac694dbe5 (diff) | |
download | ale-ef495ba32db2b0c21e73e2ef0034de6888854587.zip |
#904 Do not run linters on :wq or :x
Diffstat (limited to 'test/test_quitting_variable.vader')
-rw-r--r-- | test/test_quitting_variable.vader | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/test_quitting_variable.vader b/test/test_quitting_variable.vader new file mode 100644 index 00000000..80b0a8dd --- /dev/null +++ b/test/test_quitting_variable.vader @@ -0,0 +1,22 @@ +Before: + Save g:ale_enabled + + unlet! b:ale_quitting + let g:ale_enabled = 0 + +After: + Restore + + unlet! b:ale_quitting + +Execute(QuitEvent should set b:ale_quitting to 1): + call ale#events#QuitEvent(bufnr('')) + + AssertEqual 1, b:ale_quitting + +Execute(EnterEvent should set b:ale_quitting to 0): + let b:ale_quitting = 1 + + call ale#events#EnterEvent(bufnr('')) + + AssertEqual 0, b:ale_quitting |