From 492260c967a2d5e955698584fbf1f075f44cda7c Mon Sep 17 00:00:00 2001 From: w0rp Date: Sun, 25 Jun 2017 16:20:55 +0100 Subject: Fix the tests harder --- test/test_ale_fix.vader | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test') 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''' -- cgit v1.2.3