Ring-Mock is a library for creating Ring request maps for testing purposes.
(ns your-app.test.core
(:use your-app.core
clojure.test
ring.mock.request))
(deftest your-handler-test
(is (= (your-handler (request :get "/doc/10"))
{:status 200
:headers {"content-type" "text/plain"}
:body "Your expected result"})))
Add the following to your Leiningen dependencies:
[ring-mock "0.1.1"]