aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorNoam Postavsky2018-07-15 00:06:29 -0400
committerNoam Postavsky2018-07-15 00:15:52 -0400
commitb1ebc123396f91b51e27f8c61a2cfe730ed202ad (patch)
tree8c326581d676d69edf1dff662f4cc93ef97b4304 /test
parent10a7e91956ebc5d808c88aecffb9d71a568d0233 (diff)
downloademacs-b1ebc123396f91b51e27f8c61a2cfe730ed202ad.tar.gz
emacs-b1ebc123396f91b51e27f8c61a2cfe730ed202ad.zip
Update package.el test for message format changes
* test/lisp/emacs-lisp/package-tests.el (package-test-signed): Update the expected message. The message was changed in 2018-06-25 "Reformat package.el message strings for future l10n". (with-package-test, with-fake-help-buffer): Add debug declarations.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/emacs-lisp/package-tests.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/lisp/emacs-lisp/package-tests.el b/test/lisp/emacs-lisp/package-tests.el
index db8e1ae37e6..b1adfabe525 100644
--- a/test/lisp/emacs-lisp/package-tests.el
+++ b/test/lisp/emacs-lisp/package-tests.el
@@ -112,7 +112,7 @@
112 upload-base) 112 upload-base)
113 &rest body) 113 &rest body)
114 "Set up temporary locations and variables for testing." 114 "Set up temporary locations and variables for testing."
115 (declare (indent 1)) 115 (declare (indent 1) (debug (([&rest form]) body)))
116 `(let* ((package-test-user-dir (make-temp-file "pkg-test-user-dir-" t)) 116 `(let* ((package-test-user-dir (make-temp-file "pkg-test-user-dir-" t))
117 (process-environment (cons (format "HOME=%s" package-test-user-dir) 117 (process-environment (cons (format "HOME=%s" package-test-user-dir)
118 process-environment)) 118 process-environment))
@@ -158,6 +158,7 @@
158 158
159(defmacro with-fake-help-buffer (&rest body) 159(defmacro with-fake-help-buffer (&rest body)
160 "Execute BODY in a temp buffer which is treated as the \"*Help*\" buffer." 160 "Execute BODY in a temp buffer which is treated as the \"*Help*\" buffer."
161 (declare (debug body))
161 `(with-temp-buffer 162 `(with-temp-buffer
162 (help-mode) 163 (help-mode)
163 ;; Trick `help-buffer' into using the temp buffer. 164 ;; Trick `help-buffer' into using the temp buffer.
@@ -504,7 +505,7 @@ Must called from within a `tar-mode' buffer."
504 (with-fake-help-buffer 505 (with-fake-help-buffer
505 (describe-package 'signed-good) 506 (describe-package 'signed-good)
506 (goto-char (point-min)) 507 (goto-char (point-min))
507 (should (re-search-forward "signed-good is an? \\(\\S-+\\) package." nil t)) 508 (should (re-search-forward "Package signed-good is \\(\\S-+\\)\\." nil t))
508 (should (string-equal (match-string-no-properties 1) "installed")) 509 (should (string-equal (match-string-no-properties 1) "installed"))
509 (should (re-search-forward 510 (should (re-search-forward
510 "Status: Installed in ['`‘]signed-good-1.0/['’]." 511 "Status: Installed in ['`‘]signed-good-1.0/['’]."