summaryrefslogtreecommitdiff
path: root/test/test_ale_fix.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-08-05 19:51:38 +0100
committerw0rp <devw0rp@gmail.com>2017-08-05 19:51:38 +0100
commit747d4fe80b8dfdc65260868230b8e3fded328228 (patch)
treebc099ba509d816413ebeaf44299efae27ec4cc56 /test/test_ale_fix.vader
parent666cfc6ee29d2bcd36a45f4ca7aa77899b2904d4 (diff)
downloadale-747d4fe80b8dfdc65260868230b8e3fded328228.zip
Stop writing a test file in real world usage in some cases
Diffstat (limited to 'test/test_ale_fix.vader')
-rw-r--r--test/test_ale_fix.vader5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_ale_fix.vader b/test/test_ale_fix.vader
index bafeee2b..b5c16724 100644
--- a/test/test_ale_fix.vader
+++ b/test/test_ale_fix.vader
@@ -82,6 +82,8 @@ After:
call ale#fix#registry#ResetToDefaults()
call ale#linter#Reset()
+ setlocal buftype=nofile
+
if filereadable('fix_test_file')
call delete('fix_test_file')
endif
@@ -245,6 +247,9 @@ Execute(ALEFix should save files on the save event):
let g:ale_fixers.testft = ['AddDollars']
+ " We have to set the buftype to empty so the file will be written.
+ setlocal buftype=
+
call SetUpLinters()
call ale#events#SaveEvent(bufnr(''))