summaryrefslogtreecommitdiff
path: root/test/test_ale_fix.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-06-25 16:20:55 +0100
committerw0rp <devw0rp@gmail.com>2017-06-25 16:20:55 +0100
commit492260c967a2d5e955698584fbf1f075f44cda7c (patch)
tree9d3d02d6eac95179f27712070bbd92945b1c8d9a /test/test_ale_fix.vader
parentc2138a2656a2aa6306921f71a2a5ee7c4c690c1f (diff)
downloadale-492260c967a2d5e955698584fbf1f075f44cda7c.zip
Fix the tests harder
Diffstat (limited to 'test/test_ale_fix.vader')
-rw-r--r--test/test_ale_fix.vader3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/test_ale_fix.vader b/test/test_ale_fix.vader
index 14967fa9..f7c6d69f 100644
--- a/test/test_ale_fix.vader
+++ b/test/test_ale_fix.vader
@@ -239,7 +239,7 @@ Execute(ALEFix should save files on the save event):
let g:ale_enabled = 1
noautocmd silent file fix_test_file
- noautocmd :w
+ call writefile(getline(1, '$'), 'fix_test_file')
let g:ale_fixers.testft = ['AddDollars']
@@ -247,7 +247,6 @@ Execute(ALEFix should save files on the save event):
call ale#events#SaveEvent()
" We should save the file.
- Assert filereadable('fix_test_file'), 'The file cannot be read'
AssertEqual ['$a', '$b', '$c'], readfile('fix_test_file')
Assert !&modified, 'The was marked as ''modified'''