浏览代码

Enable debug mode (but suppress messages) during tests

This allows the debug mode code to run for coveralls.io.
Ryan C. Thompson 7 年之前
父节点
当前提交
ba320a126c
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      tests/test-ido-completing-read+.el

+ 5 - 2
tests/test-ido-completing-read+.el

@@ -121,7 +121,7 @@ also accept a quoted list for the sake of convenience."
     (shadow-vars
      ((ido-mode t)
       (ido-ubiquitous-mode t)
-      ido-cr+-debug-mode
+      (ido-cr+-debug-mode t)
       ido-cr+-auto-update-blacklist
       ido-cr+-fallback-function
       ido-cr+-max-items
@@ -132,7 +132,10 @@ also accept a quoted list for the sake of convenience."
       ido-confirm-unique-completion
       ido-enable-flex-matching
       ido-enable-dot-prefix
-      flx-ido-mode)))
+      flx-ido-mode))
+
+    ;; Suppress all messages during tests
+    (spy-on 'message))
 
   ;; Restore the saved values after each test
   (after-each