Fix the tests harder

This commit is contained in:
w0rp 2017-06-25 16:20:55 +01:00
parent c2138a2656
commit 492260c967
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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'''