Skip to content

Commit 7f03559

Browse files
committed
Fix a test
1 parent aaeba0e commit 7f03559

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

test/cider-tests.el

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,22 +77,22 @@
7777
(describe "when there are multiple possible project types"
7878
(before-all
7979
(spy-on 'cider--identify-buildtools-present
80-
:and-return-value '("build1" "build2"))
81-
;; user choice build2
82-
(spy-on 'completing-read :and-return-value "build2"))
80+
:and-return-value '('build-tool1 'build-tool2))
81+
;; user choice build-tool2
82+
(spy-on 'completing-read :and-return-value 'build-tool2))
8383

8484
(it "returns the choice entered by user"
85-
(expect (cider-project-type) :to-equal "build2"))
85+
(expect (cider-project-type) :to-equal 'build-tool2))
8686

8787
(it "respects the value of `cider-preferred-build-tool'"
88-
(let ((cider-preferred-build-tool "build1"))
89-
(expect (cider-project-type) :to-equal "build1"))
88+
(let ((cider-preferred-build-tool 'build-tool1))
89+
(expect (cider-project-type) :to-equal 'build-tool1))
9090

9191
(let ((cider-preferred-build-tool "invalid choice"))
92-
(expect (cider-project-type) :to-equal "build2"))
92+
(expect (cider-project-type) :to-equal 'build-tool2))
9393

94-
(let ((cider-preferred-build-tool "build3"))
95-
(expect (cider-project-type) :to-equal "build2"))))
94+
(let ((cider-preferred-build-tool 'build-tool3))
95+
(expect (cider-project-type) :to-equal 'build-tool2))))
9696

9797
(describe "when there are no choices available"
9898
(it "returns the value of `cider-jack-in-default'"

0 commit comments

Comments
 (0)