aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@batsov.com>2018-09-30 11:15:28 +0300
committerBozhidar Batsov <bozhidar@batsov.com>2018-09-30 11:15:28 +0300
commit8ec5e35ab66e285f62a8b8e8ba56e1dbdb8d417f (patch)
tree3f1bce0d0eabd204cf03e8f45d065292c18f3d29 /test
parent0680fdd158bce43d533298f352709989eeae39ab (diff)
Clean up the code related to getting project files via external
commands * Reduce the need to dynamically bind the project root for many commands (we achieve this by passing the necessary information explicitly between functions) * Get rid of the pointless `projectile-get-repo-files` function.
Diffstat (limited to 'test')
-rw-r--r--test/projectile-test.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/projectile-test.el b/test/projectile-test.el
index 63d48b0..011e164 100644
--- a/test/projectile-test.el
+++ b/test/projectile-test.el
@@ -128,7 +128,7 @@
'("foo.c" "foo.o.gz"))))))))
(ert-deftest projectile-add-unignored-files ()
- (noflet ((projectile-get-repo-ignored-files () '("unignored-file"
+ (noflet ((projectile-get-repo-ignored-files (project vcs) '("unignored-file"
"path/unignored-file2")))
(let ((projectile-globally-unignored-files '("unignored-file")))
(should (equal (projectile-add-unignored '("file"))
@@ -147,8 +147,8 @@
(ert-deftest projectile-add-unignored-directories ()
(noflet ((projectile-project-vcs () 'git)
- (projectile-get-repo-ignored-files () '("path/unignored-file"))
- (projectile-get-repo-ignored-directory (dir) (list (concat dir "unignored-file"))))
+ (projectile-get-repo-ignored-files (project vcs) '("path/unignored-file"))
+ (projectile-get-repo-ignored-directory (project dir vcs) (list (concat dir "unignored-file"))))
(let ((projectile-globally-unignored-directories '("path")))
(should (equal (projectile-add-unignored '("file"))
'("file" "path/unignored-file")))
@@ -191,7 +191,7 @@
(projectile-index-directory (dir patterns progress-reporter)
(should (equal dir "a/"))
'("/my/root/a/b/c" "/my/root/a/d/e"))
- (projectile-get-repo-files () '("a/b/c" "a/d/e"))
+ (projectile-dir-files-external (dir) '("a/b/c" "a/d/e"))
(cd (directory) "/my/root/a/" nil))
(let ((projectile-indexing-method 'native))
(should (equal '("a/b/c" "a/d/e") (projectile-dir-files "/my/root/" "a/"))))