File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 147
147
(GET* " /third" []
148
148
(ok {:value " third" }))))
149
149
(fact " first returns first"
150
- (let [[status body headers ] (get* api " /first" {})]
150
+ (let [[status body] (get* api " /first" {})]
151
151
status => 200
152
152
body => {:value " first" }))
153
153
(fact " second returns foo"
154
- (let [[status body headers ] (get* api " /second" {})]
154
+ (let [[status body] (get* api " /second" {})]
155
155
status => 200
156
156
body => {:value " foo" }))
157
157
(fact " third returns third"
158
- (let [[status body headers ] (get* api " /third" {})]
158
+ (let [[status body] (get* api " /third" {})]
159
159
status => 200
160
160
body => {:value " third" })))
161
161
167
167
:middlewares [middleware-x]
168
168
(ok {:value x}))))
169
169
(fact " middleware edits the parameter before route body"
170
- (let [[status body headers ] (get* api " /first?x=5" {})]
170
+ (let [[status body] (get* api " /first?x=5" {})]
171
171
status => 200
172
172
body => {:value 10 })))
173
173
639
639
(tabular
640
640
(facts
641
641
(fact {:midje/description (str ?content-type " to json" )}
642
- (let [[status body headers ]
642
+ (let [[status body]
643
643
(raw-post* api " /echo" ?body ?content-type {:accept " application/json" })]
644
644
status => 200
645
645
body => " {\" foo\" :\" bar\" }" ))
646
646
(fact {:midje/description (str " json to " ?content-type)}
647
- (let [[status body headers ]
647
+ (let [[status body]
648
648
(raw-post* api " /echo" " {\" foo\" :\" bar\" }" " application/json" {:accept ?content-type})]
649
649
status => 200
650
650
body => ?body)))
You can’t perform that action at this time.
0 commit comments