]> git.eshelyaron.com Git - emacs.git/commitdiff
Add :bind test for a single cons cell
authorJohn Wiegley <johnw@newartisans.com>
Wed, 6 Dec 2017 16:30:47 +0000 (08:30 -0800)
committerJohn Wiegley <johnw@newartisans.com>
Wed, 6 Dec 2017 16:30:47 +0000 (08:30 -0800)
Relates to https://github.com/jwiegley/use-package/issues/566

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

index fa765ac6634db68395d5c7cba44d772384443183..05b8f3207ac20615dc854e968fbcaa177f8a9302 100644 (file)
                   :map my-map ("C-u" . key2)
                   :map my-map2 ("C-u" . key3))))))
 
+(ert-deftest use-package-test/:bind-7 ()
+  (match-expansion
+   (use-package foo
+     :ensure
+     :bind ("C-c r" . browse-at-remote))
+   `(progn
+      (use-package-ensure-elpa 'foo '(t) 'nil)
+      (unless (fboundp 'browse-at-remote)
+        (autoload #'browse-at-remote "foo" nil t))
+      (ignore
+       (bind-keys :package foo ("C-c r" . browse-at-remote))))))
+
 (ert-deftest use-package-test/:bind*-1 ()
   (match-expansion
    (use-package foo :bind* ("C-k" . key))