aboutsummaryrefslogtreecommitdiff
path: root/test/projectile-test.el
diff options
context:
space:
mode:
Diffstat (limited to 'test/projectile-test.el')
-rw-r--r--test/projectile-test.el11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/projectile-test.el b/test/projectile-test.el
index 4ebe3bd..33c50e4 100644
--- a/test/projectile-test.el
+++ b/test/projectile-test.el
@@ -629,9 +629,16 @@ Just delegates OPERATION and ARGS for all operations except for`shell-command`'.
(expect (projectile-root-top-down "projectA/src/framework/lib" '(".git" "framework.conf"))
:to-equal
(expand-file-name "projectA/src/"))
- (expect (projectile-root-top-down "projectA/src/html/" '(".svn"))
+ (expect (projectile-root-top-down "projectA/src/html/" '("index.html"))
:to-equal
- (expand-file-name "projectA/src/html/"))))))
+ (expand-file-name "projectA/src/html/")))))
+ (it "does not match directories for file-type markers"
+ (projectile-test-with-sandbox
+ (projectile-test-with-files
+ ("projectA/workspace/"
+ "projectA/src/")
+ (expect (projectile-root-top-down "projectA/src/" '("workspace"))
+ :not :to-be-truthy)))))
(describe "projectile-root-top-down-recurring"
(it "identifies the root directory of a project by recurring top-down search"