summaryrefslogtreecommitdiff
path: root/test/test_should_do_nothing_conditions.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_should_do_nothing_conditions.vader')
-rw-r--r--test/test_should_do_nothing_conditions.vader9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test_should_do_nothing_conditions.vader b/test/test_should_do_nothing_conditions.vader
index de2e2782..6dfed555 100644
--- a/test/test_should_do_nothing_conditions.vader
+++ b/test/test_should_do_nothing_conditions.vader
@@ -35,6 +35,10 @@ After:
unlet! b:funky_command_created
unlet! b:fake_mode
+ if &diff is 1
+ let &diff = 0
+ endif
+
runtime autoload/ale/util.vim
Given foobar(An empty file):
@@ -70,6 +74,11 @@ Execute(DoNothing should return 1 when an operator is pending):
AssertEqual 1, ale#ShouldDoNothing(bufnr(''))
+Execute(DoNothing should return 1 for diff buffers):
+ let &diff = 1
+
+ AssertEqual 1, ale#ShouldDoNothing(bufnr(''))
+
Execute(The DoNothing check should work if the ALE globals aren't defined):
unlet! g:ale_filetype_blacklist
unlet! g:ale_maximum_file_size