File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 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' "
You can’t perform that action at this time.
0 commit comments