summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-10-14 17:24:29 +0100
committerw0rp <devw0rp@gmail.com>2017-10-14 17:24:29 +0100
commit8eb41dc94c10f3e8af17c4b9b2be900fae5ceee4 (patch)
tree570f87dc2027d2c814b9b1d8bbb3596b2df03f8a
parent6fd10f80de6547472a863b1c2834fbc0bb6886b9 (diff)
downloadale-8eb41dc94c10f3e8af17c4b9b2be900fae5ceee4.zip
Fix the test for doing nothing for CtrlPFunky buffers
-rw-r--r--test/test_should_do_nothing_conditions.vader13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/test_should_do_nothing_conditions.vader b/test/test_should_do_nothing_conditions.vader
index 4d6facf9..0df5881e 100644
--- a/test/test_should_do_nothing_conditions.vader
+++ b/test/test_should_do_nothing_conditions.vader
@@ -1,7 +1,20 @@
Before:
Save &l:statusline
+ let b:funky_command_created = 0
+
+ " We will test for the existence of this command, so create one if needed.
+ if !exists(':CtrlPFunky')
+ command CtrlPFunky echo
+ let b:funky_command_created = 1
+ endif
+
After:
+ if b:funky_command_created
+ delcommand CtrlPFunky
+ let b:funky_command_created = 0
+ endif
+
Restore
Execute(ALE shouldn't do much of anything for ctrlp-funky buffers):