emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 11f4214 2/2: * test/automated/package-test.el (pack


From: Artur Malabarba
Subject: [Emacs-diffs] master 11f4214 2/2: * test/automated/package-test.el (package-test-install-single):
Date: Tue, 06 Oct 2015 18:42:11 +0000

branch: master
commit 11f42149b1c6d0f4805a6265b42301d04e0203fc
Author: Artur Malabarba <address@hidden>
Commit: Artur Malabarba <address@hidden>

    * test/automated/package-test.el (package-test-install-single):
    
    Add a test for bug#21625.
---
 test/automated/package-test.el |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/test/automated/package-test.el b/test/automated/package-test.el
index ae10a9b..de41c3b 100644
--- a/test/automated/package-test.el
+++ b/test/automated/package-test.el
@@ -205,6 +205,12 @@ Must called from within a `tar-mode' buffer."
     (should (package-install-from-buffer))
     (package-initialize)
     (should (package-installed-p 'simple-single))
+    ;; Check if we properly report an "already installed".
+    (package-install 'simple-single)
+    (with-current-buffer "*Messages*"
+      (should (string-match "^[`‘']simple-single[’'] is already 
installed\n?\\'"
+                            (buffer-string))))
+    (should (package-installed-p 'simple-single))
     (let* ((simple-pkg-dir (file-name-as-directory
                             (expand-file-name
                              "simple-single-1.3"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]