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

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

[elpa] master 361cf87 070/184: ivy-test.el (counsel-find-file-with-dolla


From: Oleh Krehel
Subject: [elpa] master 361cf87 070/184: ivy-test.el (counsel-find-file-with-dollars): Remove
Date: Wed, 16 Oct 2019 13:14:51 -0400 (EDT)

branch: master
commit 361cf871ae914d3a134c921a76f28be7101d1923
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    ivy-test.el (counsel-find-file-with-dollars): Remove
    
    Fixes #2187
---
 ivy-test.el                                              | 12 ------------
 tests/find-file/directories-with-spaces/bar baz i/file1  |  0
 tests/find-file/directories-with-spaces/bar baz ii/file2 |  0
 tests/find-file/dotfiles/.foobar1                        |  0
 tests/find-file/dotfiles/.foobar2                        |  0
 tests/find-file/dotfiles/foo/placeholder                 |  0
 tests/find-file/files-with-dollar/$                      |  0
 tests/find-file/files-with-dollar/foo$                   |  0
 tests/find-file/files-with-dollar/one                    |  0
 tests/find-file/files-with-dollar/two                    |  0
 10 files changed, 12 deletions(-)

diff --git a/ivy-test.el b/ivy-test.el
index 2c859c1..0989abd 100644
--- a/ivy-test.el
+++ b/ivy-test.el
@@ -1324,17 +1324,7 @@ a buffer visiting a file."
   (should (equal (ivy--minibuffer-index-bounds 10 11 10) '(2 11 8)))
   (should (equal (ivy--minibuffer-index-bounds 1 3 10) '(0 3 1))))
 
-(defun counsel--setup-test-files ()
-  (unless (file-exists-p "tests/")
-    (shell-command
-     "git clone -b test --single-branch https://github.com/abo-abo/swiper/ 
tests"))
-  (let ((default-directory (expand-file-name "tests/"))
-        (version "066ec1d"))
-    (shell-command
-     (format "git checkout %s || git fetch && git checkout %s" version 
version))))
-
 (ert-deftest counsel-find-file-with-dollars ()
-  (counsel--setup-test-files)
   (should (string=
            (file-relative-name
             (ivy-with '(counsel-find-file) "fo C-m"
@@ -1342,7 +1332,6 @@ a buffer visiting a file."
            "tests/find-file/files-with-dollar/foo$")))
 
 (ert-deftest counsel-find-file-with-dotfiles ()
-  (counsel--setup-test-files)
   (should (string=
            (file-relative-name
             (ivy-with '(counsel-find-file) "f C-m"
@@ -1355,7 +1344,6 @@ a buffer visiting a file."
            "tests/find-file/dotfiles/.foobar1")))
 
 (ert-deftest counsel-find-file-with-spaces ()
-  (counsel--setup-test-files)
   (let ((ivy-extra-directories nil))
     (should (string=
              (file-relative-name
diff --git a/tests/find-file/directories-with-spaces/bar baz i/file1 
b/tests/find-file/directories-with-spaces/bar baz i/file1
new file mode 100644
index 0000000..e69de29
diff --git a/tests/find-file/directories-with-spaces/bar baz ii/file2 
b/tests/find-file/directories-with-spaces/bar baz ii/file2
new file mode 100644
index 0000000..e69de29
diff --git a/tests/find-file/dotfiles/.foobar1 
b/tests/find-file/dotfiles/.foobar1
new file mode 100644
index 0000000..e69de29
diff --git a/tests/find-file/dotfiles/.foobar2 
b/tests/find-file/dotfiles/.foobar2
new file mode 100644
index 0000000..e69de29
diff --git a/tests/find-file/dotfiles/foo/placeholder 
b/tests/find-file/dotfiles/foo/placeholder
new file mode 100644
index 0000000..e69de29
diff --git a/tests/find-file/files-with-dollar/$ 
b/tests/find-file/files-with-dollar/$
new file mode 100644
index 0000000..e69de29
diff --git a/tests/find-file/files-with-dollar/foo$ 
b/tests/find-file/files-with-dollar/foo$
new file mode 100644
index 0000000..e69de29
diff --git a/tests/find-file/files-with-dollar/one 
b/tests/find-file/files-with-dollar/one
new file mode 100644
index 0000000..e69de29
diff --git a/tests/find-file/files-with-dollar/two 
b/tests/find-file/files-with-dollar/two
new file mode 100644
index 0000000..e69de29



reply via email to

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