Skip to content

Commit

Permalink
ivy-test.el (counsel-find-file-with-dotfiles): Disable for emacs27
Browse files Browse the repository at this point in the history
  • Loading branch information
abo-abo committed Apr 13, 2019
1 parent fa87b97 commit 4171364
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ivy-test.el
Expand Up @@ -1106,7 +1106,8 @@ a buffer visiting a file."
"test/find-file/files-with-dollar/foo$")))

(ert-deftest counsel-find-file-with-dotfiles ()
(unless (version< emacs-version "26.1")
(when (and (version<= emacs-version "26.2")
(not (version< emacs-version "26.1")))

This comment has been minimized.

Copy link
@basil-conto

basil-conto May 2, 2019

Collaborator

ERT provides skip-unless for this purpose. See (ert) Tests and Their Environment.

This comment has been minimized.

Copy link
@basil-conto

basil-conto May 2, 2019

Collaborator

Unfortunately skip-unless was only added in Emacs 24.4. Luckily :expected-result can be used instead.

(should (string=
(file-relative-name
(ivy-with '(counsel-find-file) "f C-m"
Expand Down

0 comments on commit 4171364

Please sign in to comment.