diff options
| author | Bozhidar Batsov <bozhidar@batsov.com> | 2018-10-08 11:13:18 +0300 |
|---|---|---|
| committer | Bozhidar Batsov <bozhidar@batsov.com> | 2018-10-08 11:13:18 +0300 |
| commit | ed623037d5203b8c6a8e65cd506f6830f6b14e9e (patch) | |
| tree | b3678dc953290fdd62630d5c98b3f981f66bd204 /test | |
| parent | e2c9ab8f41b842ebc5f1e4b1cd14741b7a2538be (diff) | |
Add a couple of tests for projectile-project-type
Diffstat (limited to 'test')
| -rw-r--r-- | test/projectile-test.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/projectile-test.el b/test/projectile-test.el index 04dffa8..4e2a4b9 100644 --- a/test/projectile-test.el +++ b/test/projectile-test.el @@ -94,6 +94,12 @@ test temp directory" (projectile-register-project-type 'bar '("Bar")) (expect (caar projectile-project-types) :to-equal 'bar))) +(describe "projectile-project-type" + (it "detects the type of Projectile's project" + (expect (projectile-project-type) :to-equal 'emacs-cask)) + (it "caches the project type" + (expect (gethash (projectile-project-root) projectile-project-type-cache) :to-equal 'emacs-cask))) + (describe "projectile-get-all-sub-projects" (it "excludes out-of-project submodules" (projectile-test-with-sandbox |
