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

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

[elpa] master 31e57e7 181/399: ivy-test.el (counsel-find-file-with-dotfi


From: Oleh Krehel
Subject: [elpa] master 31e57e7 181/399: ivy-test.el (counsel-find-file-with-dotfiles): Disable for older Emacs
Date: Sat, 20 Jul 2019 14:57:19 -0400 (EDT)

branch: master
commit 31e57e708226a4b9797de0e3e4ebe12b35e8c28d
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    ivy-test.el (counsel-find-file-with-dotfiles): Disable for older Emacs
    
    Need to investigate later why it fails
---
 ivy-test.el | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

diff --git a/ivy-test.el b/ivy-test.el
index aa0d7b4..285a23f 100644
--- a/ivy-test.el
+++ b/ivy-test.el
@@ -1104,16 +1104,17 @@ a buffer visiting a file."
            "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")))
+  (unless (version< emacs-version "25.2")
+    (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)
 



reply via email to

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