summaryrefslogtreecommitdiff
path: root/test/test_ignoring_linters.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-10-29 11:29:12 +0000
committerw0rp <devw0rp@gmail.com>2018-10-29 11:29:21 +0000
commit2846e862178e9a16e078799c28aa9d9d4a2ea505 (patch)
tree280fdf12616e46090cd4be58930a8b395ebbb43b /test/test_ignoring_linters.vader
parent9dbebf1cb3909c47a69c07397a84da1369cf98d0 (diff)
downloadale-2846e862178e9a16e078799c28aa9d9d4a2ea505.zip
#2017 Simplify lint cycles for supporting other sources later
Diffstat (limited to 'test/test_ignoring_linters.vader')
-rw-r--r--test/test_ignoring_linters.vader6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_ignoring_linters.vader b/test/test_ignoring_linters.vader
index 1ddd30e8..f47c5e81 100644
--- a/test/test_ignoring_linters.vader
+++ b/test/test_ignoring_linters.vader
@@ -138,6 +138,9 @@ After:
Given foobar(An empty file):
Execute(Global ignore lists should be applied for linters):
+ " We have to set up buffer info so RunLinters is called.
+ let g:ale_buffer_info = {bufnr(''): {}}
+
ALELint
Assert g:run_linters_called, "The mock callback wasn't called"
AssertEqual ['testlinter'], map(g:linters, 'v:val.name')
@@ -147,6 +150,9 @@ Execute(Global ignore lists should be applied for linters):
AssertEqual [], g:linters
Execute(buffer ignore lists should be applied for linters):
+ " We have to set up buffer info so RunLinters is called.
+ let g:ale_buffer_info = {bufnr(''): {}}
+
ALELint
Assert g:run_linters_called, "The mock callback wasn't called"
AssertEqual ['testlinter'], map(g:linters, 'v:val.name')