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 77
77
(describe " when there are multiple possible project types"
78
78
(before-all
79
79
(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 ))
83
83
84
84
(it " returns the choice entered by user"
85
- (expect (cider-project-type) :to-equal " build2 " ))
85
+ (expect (cider-project-type) :to-equal 'build-tool2 ))
86
86
87
87
(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 ))
90
90
91
91
(let ((cider-preferred-build-tool " invalid choice" ))
92
- (expect (cider-project-type) :to-equal " build2 " ))
92
+ (expect (cider-project-type) :to-equal 'build-tool2 ))
93
93
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 ))))
96
96
97
97
(describe " when there are no choices available"
98
98
(it " returns the value of `cider-jack-in-default' "
You can’t perform that action at this time.
0 commit comments