Format code

This commit is contained in:
Tommi Reiman 2018-10-30 19:50:18 +02:00
parent 3e6f1c0548
commit 763440e41f

View file

@ -247,8 +247,8 @@
:post (constantly ok)}]]] :post (constantly ok)}]]]
(testing "using :method :add" (testing "using :method :add"
(let [app (ring/ring-handler (let [app (ring/ring-handler
(ring/router routes) (ring/router routes)
(ring/redirect-trailing-slash-handler {:method :add}))] (ring/redirect-trailing-slash-handler {:method :add}))]
(testing "exact matches work" (testing "exact matches work"
(is (= ok (app {:request-method :get, :uri "/slash-less"}))) (is (= ok (app {:request-method :get, :uri "/slash-less"})))