]> git.eshelyaron.com Git - emacs.git/commitdiff
Add another :bind test
authorJohn Wiegley <johnw@newartisans.com>
Fri, 8 Dec 2017 06:04:24 +0000 (22:04 -0800)
committerJohn Wiegley <johnw@newartisans.com>
Fri, 8 Dec 2017 06:04:24 +0000 (22:04 -0800)
test/lisp/use-package/use-package-tests.el

index 2f4a7b897c4e469077f1baa4054851c9ac446c58..0b40fb582ad673cf325a4ad45e4eae5d4231e581 100644 (file)
       (ignore
        (bind-keys :package foo ("C-c r" . browse-at-remote))))))
 
+(ert-deftest use-package-test/:bind-8 ()
+  (match-expansion
+   (use-package foo
+     :ensure
+     :bind (:map foo-map
+                 (("C-c r" . foo)
+                  ("C-c r" . bar))))
+   `(progn
+      (use-package-ensure-elpa 'foo '(t) 'nil)
+      (unless (fboundp 'foo)
+        (autoload #'foo "foo" nil t))
+      (unless (fboundp 'bar)
+        (autoload #'bar "foo" nil t))
+      (ignore
+       (bind-keys :package foo :map foo-map
+                  ("C-c r" . foo)
+                  ("C-c r" . bar))))))
+
 (ert-deftest use-package-test/:bind*-1 ()
   (match-expansion
    (use-package foo :bind* ("C-k" . key))