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 147147 (GET* " /third" []
148148 (ok {:value " third" }))))
149149 (fact " first returns first"
150- (let [[status body headers ] (get* api " /first" {})]
150+ (let [[status body] (get* api " /first" {})]
151151 status => 200
152152 body => {:value " first" }))
153153 (fact " second returns foo"
154- (let [[status body headers ] (get* api " /second" {})]
154+ (let [[status body] (get* api " /second" {})]
155155 status => 200
156156 body => {:value " foo" }))
157157 (fact " third returns third"
158- (let [[status body headers ] (get* api " /third" {})]
158+ (let [[status body] (get* api " /third" {})]
159159 status => 200
160160 body => {:value " third" })))
161161
167167 :middlewares [middleware-x]
168168 (ok {:value x}))))
169169 (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" {})]
171171 status => 200
172172 body => {:value 10 })))
173173
639639 (tabular
640640 (facts
641641 (fact {:midje/description (str ?content-type " to json" )}
642- (let [[status body headers ]
642+ (let [[status body]
643643 (raw-post* api " /echo" ?body ?content-type {:accept " application/json" })]
644644 status => 200
645645 body => " {\" foo\" :\" bar\" }" ))
646646 (fact {:midje/description (str " json to " ?content-type)}
647- (let [[status body headers ]
647+ (let [[status body]
648648 (raw-post* api " /echo" " {\" foo\" :\" bar\" }" " application/json" {:accept ?content-type})]
649649 status => 200
650650 body => ?body)))
You can’t perform that action at this time.
0 commit comments