summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@batsov.com>2018-08-22 15:59:28 +0200
committerBozhidar Batsov <bozhidar@batsov.com>2018-08-22 15:59:28 +0200
commit7f035598b063645e52f88fb3ce731a624c6719ed (patch)
tree44aafce5c5aa24d6873ad0be157c5ec749bdb3c8 /test
parentaaeba0e93c7f964a28a67dc6919a40dea308a83f (diff)
Fix a test
Diffstat (limited to 'test')
-rw-r--r--test/cider-tests.el18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/cider-tests.el b/test/cider-tests.el
index 0bdc4e88..7021d31b 100644
--- a/test/cider-tests.el
+++ b/test/cider-tests.el
@@ -77,22 +77,22 @@
(describe "when there are multiple possible project types"
(before-all
(spy-on 'cider--identify-buildtools-present
- :and-return-value '("build1" "build2"))
- ;; user choice build2
- (spy-on 'completing-read :and-return-value "build2"))
+ :and-return-value '('build-tool1 'build-tool2))
+ ;; user choice build-tool2
+ (spy-on 'completing-read :and-return-value 'build-tool2))
(it "returns the choice entered by user"
- (expect (cider-project-type) :to-equal "build2"))
+ (expect (cider-project-type) :to-equal 'build-tool2))
(it "respects the value of `cider-preferred-build-tool'"
- (let ((cider-preferred-build-tool "build1"))
- (expect (cider-project-type) :to-equal "build1"))
+ (let ((cider-preferred-build-tool 'build-tool1))
+ (expect (cider-project-type) :to-equal 'build-tool1))
(let ((cider-preferred-build-tool "invalid choice"))
- (expect (cider-project-type) :to-equal "build2"))
+ (expect (cider-project-type) :to-equal 'build-tool2))
- (let ((cider-preferred-build-tool "build3"))
- (expect (cider-project-type) :to-equal "build2"))))
+ (let ((cider-preferred-build-tool 'build-tool3))
+ (expect (cider-project-type) :to-equal 'build-tool2))))
(describe "when there are no choices available"
(it "returns the value of `cider-jack-in-default'"