emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/system-packages 0b04066 088/117: Test that we error whe


From: Stefan Monnier
Subject: [elpa] externals/system-packages 0b04066 088/117: Test that we error when we don't know commands
Date: Fri, 14 Dec 2018 17:02:14 -0500 (EST)

branch: externals/system-packages
commit 0b04066049cf655e47c0b2ffecea2204f36a5745
Author: Alex Branham <address@hidden>
Commit: Alex Branham <address@hidden>

    Test that we error when we don't know commands
---
 test/system-packages-test.el | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/test/system-packages-test.el b/test/system-packages-test.el
index 2e98dad..4360a4a 100644
--- a/test/system-packages-test.el
+++ b/test/system-packages-test.el
@@ -34,3 +34,12 @@
                  (system-packages-package-manager 'pacman))
              (system-packages-get-command 'install))
            "sudo pacman -S --noconfirm")))
+
+(ert-deftest system-packages-errors ()
+  "Error when we don't know a command."
+  (should-error
+   (let ((system-packages-package-manager 'pacaur))
+     (system-packages-get-command 'install)))
+  (should-error
+   (let ((system-packages-package-manager 'guix))
+     (system-packages-get-command 'clean-cache))))



reply via email to

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