diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/projectile-test.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/projectile-test.el b/test/projectile-test.el index 33c50e4..0880d6d 100644 --- a/test/projectile-test.el +++ b/test/projectile-test.el @@ -546,7 +546,11 @@ Just delegates OPERATION and ARGS for all operations except for`shell-command`'. (expect (projectile-files-via-ext-command "" "echo filename") :to-equal '("filename"))) (it "supports magic file handlers" - (expect (projectile-files-via-ext-command "#magic#" "echo filename") :to-equal '("magic")))) + (expect (projectile-files-via-ext-command "#magic#" "echo filename") :to-equal '("magic"))) + + (it "strips ./ prefix from results" + (expect (projectile-files-via-ext-command "" "printf './foo\\0./bar/baz\\0quux'") + :to-equal '("foo" "bar/baz" "quux")))) (describe "projectile-mode" (before-each |
