branch: scratch/el-mock
commit 8e9f1fbfec6d869b314e2eeff9a097e28bd85111
Author: Philipp Stephani <p...@google.com>
Commit: Philipp Stephani <p...@google.com>

    Fix tests for Emacs 25.1
    
    Emacs 25.1 replaces ASCII quotes with Unicode quotes.  This causes a
    mismatch in the error messages.  Fix the test by suppressing the quote
    replacement locally.
---
 test/el-mock-test.el | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/test/el-mock-test.el b/test/el-mock-test.el
index b539be8b47..9eeaa0967c 100644
--- a/test/el-mock-test.el
+++ b/test/el-mock-test.el
@@ -46,7 +46,8 @@
  ;;         (with-mock
  ;;          (stub fooz 7)))
  (expect (error-message "Do not use `stub' outside")
-         (let (in-mocking) ; while executing `expect', `in-mocking' is t.
+         (let (in-mocking  ; while executing `expect', `in-mocking' is t.
+               (text-quoting-style 'grave))
            (stub hahahaha)))
  (desc "mock macro")
  (expect 2
@@ -117,7 +118,8 @@
  ;;         (with-mock
  ;;          (mock (fooz) 7)))
  (expect (error-message "Do not use `mock' outside")
-         (let (in-mocking) ; while executing `expect', `in-mocking' is t.
+         (let (in-mocking  ; while executing `expect', `in-mocking' is t.
+               (text-quoting-style 'grave))
            (mock (hahahaha))))
 
  (desc "mock with stub")
@@ -260,7 +262,8 @@
           (hoge 1)))
  (desc "abused not-called macro")
  (expect (error-message "Do not use `not-called' outside")
-         (let (in-mocking) ; while executing `expect', `in-mocking' is t.
+         (let (in-mocking  ; while executing `expect', `in-mocking' is t.
+               (text-quoting-style 'grave))
            (not-called hahahaha)))
  (desc "not-called for adviced function")
  (expect "not-called"

Reply via email to