File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
ring-devel/test/ring/middleware/test Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 6
6
(def assert-app (wrap-stacktrace (fn [_] (assert (= 1 2 )))))
7
7
8
8
9
- (def html-req {:headers {" accept" " text/html" }})
10
- (def js-req {:headers {" accept" " application/javascript" }})
9
+ (def html-req {:headers {" accept" " text/html" }})
10
+ (def js-req {:headers {" accept" " application/javascript" }})
11
11
(def plain-req {})
12
12
13
13
(deftest wrap-stacktrace-smoke
14
14
(binding [*err* (java.io.StringWriter. )]
15
15
(doseq [app [exception-app assert-app]]
16
16
(testing " requests with Accept: text/html"
17
- (let [{:keys [status headers body] :as response } (app html-req)]
17
+ (let [{:keys [status headers body]} (app html-req)]
18
18
(is (= 500 status))
19
19
(is (= {" Content-Type" " text/html" } headers))
20
20
(is (.startsWith body " <!DOCTYPE html>" ))))
You can’t perform that action at this time.
0 commit comments