helpful

a fork of Wilfred's helpful
git clone https://git.trogloxene.org/helpful.git
Log | Files | Refs | README

commit 7e187f29c9295f7862a7deb5c6a548eb9489d4f1
parent 937ab3e1d97426ea344510104172bac7bff6f71f
Author: Wilfred Hughes <me@wilfred.me.uk>
Date:   Wed, 30 May 2018 21:39:42 +0100

Fix test that relied on ido-mode being loaded

Diffstat:
Mtest/unit-test.el | 12+++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/test/unit-test.el b/test/unit-test.el @@ -476,9 +476,15 @@ associated a lambda with a keybinding." ;; This is defined in the global map. (should (helpful--keymaps-containing #'where-is)) - ;; This is only defined in `minor-mode-map-alist'. - (should - (helpful--keymaps-containing #'ido-display-buffer)) + + ;; Only defined in `minor-mode-map-alist'. + (let ((keymap (make-sparse-keymap))) + (define-key keymap (kbd "a") #'helpful--dummy-command) + (let ((minor-mode-map-alist + (cons (cons 'foo-mode keymap) minor-mode-map-alist))) + (should + (helpful--keymaps-containing #'helpful--dummy-command)))) + ;; Create a keybinding that is very unlikely to clobber actually ;; defined keybindings in the current emacs instance. (global-set-key (kbd "C-c M-S-c") #'helpful--dummy-command)