summaryrefslogtreecommitdiff
path: root/test/test_ignoring_linters.vader
diff options
context:
space:
mode:
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')