summaryrefslogtreecommitdiff
path: root/test/test_ale_fix.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-05-18 17:50:20 +0100
committerw0rp <devw0rp@gmail.com>2017-05-20 19:02:36 +0100
commit0b743389e526caa7c9065405917da84f83a59b17 (patch)
tree5f35471567cda6eac6358c84a7777c75c3c2d820 /test/test_ale_fix.vader
parent05bab00c3c9878229e8b3cb8df3dc66a7ad9ee7f (diff)
downloadale-0b743389e526caa7c9065405917da84f83a59b17.zip
Send modified lines to jobs, not the file contents
Diffstat (limited to 'test/test_ale_fix.vader')
-rw-r--r--test/test_ale_fix.vader10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test_ale_fix.vader b/test/test_ale_fix.vader
index 95a37c6b..8ec7896d 100644
--- a/test/test_ale_fix.vader
+++ b/test/test_ale_fix.vader
@@ -98,6 +98,16 @@ Execute(ALEFix should allow jobs and simple functions to be combined):
Expect(The lines from the temporary file should be modified):
$x
+Execute(ALEFix should send lines modified by functions to jobs):
+ let g:ale_fixers.testft = ['AddDollars', 'CatLine']
+ ALEFix
+
+Expect(The lines should first be modified by the function, then the job):
+ $a
+ $b
+ $c
+ d
+
Execute(ALEFix should skip commands when jobs fail to run):
let g:ale_emulate_job_failure = 1
let g:ale_fixers.testft = ['CatLine', 'AddDollars']