I want to write a test for a simple POST request using ring.mock - something like this:
(testing "id post route"
(let [response (app (mock/request :post "/" {:id "Foo"}))]
(is (= 302 (:status response)))))
However, since I use the wrap-csrf middleware I get a 403 status response since I don't provide an anti-forgery token.
Is there a way to write POST tests with ring.mock without disabling the wrap-csrf middleware?