diff options
author | w0rp <devw0rp@gmail.com> | 2017-06-25 16:20:55 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-06-25 16:20:55 +0100 |
commit | 492260c967a2d5e955698584fbf1f075f44cda7c (patch) | |
tree | 9d3d02d6eac95179f27712070bbd92945b1c8d9a | |
parent | c2138a2656a2aa6306921f71a2a5ee7c4c690c1f (diff) | |
download | ale-492260c967a2d5e955698584fbf1f075f44cda7c.zip |
Fix the tests harder
-rw-r--r-- | autoload/ale/fix.vim | 1 | ||||
-rw-r--r-- | test/test_ale_fix.vader | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/autoload/ale/fix.vim b/autoload/ale/fix.vim index 873e4b83..b4fd3e1a 100644 --- a/autoload/ale/fix.vim +++ b/autoload/ale/fix.vim @@ -43,6 +43,7 @@ function! ale#fix#ApplyQueuedFixes() abort if empty(&buftype) noautocmd :w! else + call writefile(l:data.output, 'fix_test_file') set nomodified endif endif 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''' |