emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 2221a5c 177/399: ivy-test.el (counsel-find-file-with-dotfi


From: Oleh Krehel
Subject: [elpa] master 2221a5c 177/399: ivy-test.el (counsel-find-file-with-dotfiles): Add test
Date: Sat, 20 Jul 2019 14:57:18 -0400 (EDT)

branch: master
commit 2221a5c4625639bb3df3f3248efc32c43cf8a924
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    ivy-test.el (counsel-find-file-with-dotfiles): Add test
---
 ivy-test.el | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/ivy-test.el b/ivy-test.el
index 1b9e57a..712467f 100644
--- a/ivy-test.el
+++ b/ivy-test.el
@@ -1099,6 +1099,18 @@ a buffer visiting a file."
                       :dir "test/find-file/files-with-dollar/"))
            "test/find-file/files-with-dollar/foo$")))
 
+(ert-deftest counsel-find-file-with-dotfiles ()
+  (should (string=
+           (file-relative-name
+            (ivy-with '(counsel-find-file) "f C-m"
+                      :dir "test/find-file/dotfiles/"))
+           "test/find-file/dotfiles/foo/"))
+  (should (string=
+           (file-relative-name
+            (ivy-with '(counsel-find-file) "foob C-m"
+                      :dir "test/find-file/dotfiles/"))
+           "test/find-file/dotfiles/.foobar1")))
+
 (provide 'ivy-test)
 
 ;;; ivy-test.el ends here



reply via email to

[Prev in Thread] Current Thread [Next in Thread]