diff options
| author | Wilfred Hughes <me@wilfred.me.uk> | 2018-05-30 21:39:42 +0100 |
|---|---|---|
| committer | Wilfred Hughes <me@wilfred.me.uk> | 2018-05-30 21:39:42 +0100 |
| commit | 7e187f29c9295f7862a7deb5c6a548eb9489d4f1 (patch) | |
| tree | dba6bced87acedd22b0e0b2f84268f745bb8097c /test | |
| parent | 937ab3e1d97426ea344510104172bac7bff6f71f (diff) | |
Fix test that relied on ido-mode being loaded
Diffstat (limited to 'test')
| -rw-r--r-- | test/unit-test.el | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/test/unit-test.el b/test/unit-test.el index 2bc1877..446e023 100644 --- 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) |
