branch: master
commit 8837369fccd885231952fa5a8190492d7ab79760
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
ivy-test.el (ivy-completion-in-region): Add test
Re #1251
---
ivy-test.el | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/ivy-test.el b/ivy-test.el
index 3c41732..0c00ac7 100644
--- a/ivy-test.el
+++ b/ivy-test.el
@@ -573,6 +573,23 @@ will bring the behavior in line with the newer Emacsen."
"bl C-p C-M-j")
"bl")))
+(ert-deftest ivy-completion-in-region ()
+ (should (string= (let ((temp-buffer (generate-new-buffer " *temp*")))
+ (unwind-protect
+ (save-window-excursion
+ (switch-to-buffer temp-buffer)
+ (emacs-lisp-mode)
+ (ivy-mode)
+ (insert " temp-buffer-sh")
+ (execute-kbd-macro
+ (vconcat
+ (kbd "C-M-i")
+ (kbd "RET")))
+ (buffer-string))
+ (and (buffer-name temp-buffer)
+ (kill-buffer temp-buffer))))
+ " temp-buffer-show-hook")))
+
(ert-deftest ivy-completing-read-def-handling ()
;; DEF in COLLECTION
(should