Skip to content

Commit 3273245

Browse files
authored
Merge pull request #390 from sirmspencer/format-stacktrace-test
Update formatting for stacktrace test
2 parents ae6a421 + 7c3d3e6 commit 3273245

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ring-devel/test/ring/middleware/test/stacktrace.clj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
(def assert-app (wrap-stacktrace (fn [_] (assert (= 1 2)))))
77

88

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"}})
1111
(def plain-req {})
1212

1313
(deftest wrap-stacktrace-smoke
1414
(binding [*err* (java.io.StringWriter.)]
1515
(doseq [app [exception-app assert-app]]
1616
(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)]
1818
(is (= 500 status))
1919
(is (= {"Content-Type" "text/html"} headers))
2020
(is (.startsWith body "<!DOCTYPE html>"))))

0 commit comments

Comments
 (0)