]> git.eshelyaron.com Git - emacs.git/commitdiff
Update package.el test for message format changes
authorNoam Postavsky <npostavs@gmail.com>
Sun, 15 Jul 2018 04:06:29 +0000 (00:06 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Sun, 15 Jul 2018 04:15:52 +0000 (00:15 -0400)
* 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.

test/lisp/emacs-lisp/package-tests.el

index db8e1ae37e61a984a949ff16d473a5a895aea8be..b1adfabe525bce1c8e9f8e216a5b7f9451b8d6d7 100644 (file)
                                            upload-base)
                                 &rest body)
   "Set up temporary locations and variables for testing."
-  (declare (indent 1))
+  (declare (indent 1) (debug (([&rest form]) body)))
   `(let* ((package-test-user-dir (make-temp-file "pkg-test-user-dir-" t))
           (process-environment (cons (format "HOME=%s" package-test-user-dir)
                                      process-environment))
 
 (defmacro with-fake-help-buffer (&rest body)
   "Execute BODY in a temp buffer which is treated as the \"*Help*\" buffer."
+  (declare (debug body))
   `(with-temp-buffer
     (help-mode)
     ;; Trick `help-buffer' into using the temp buffer.
@@ -504,7 +505,7 @@ Must called from within a `tar-mode' buffer."
       (with-fake-help-buffer
        (describe-package 'signed-good)
        (goto-char (point-min))
-       (should (re-search-forward "signed-good is an? \\(\\S-+\\) package." nil t))
+       (should (re-search-forward "Package signed-good is \\(\\S-+\\)\\." nil t))
        (should (string-equal (match-string-no-properties 1) "installed"))
        (should (re-search-forward
                "Status: Installed in ['`‘]signed-good-1.0/['’]."