(ns {{name}}.web_unit
  (:use [{{name}}.web])
  (:use [clojure.test])
  (:use midje.sweet))


(defn request [method resource]
  (routes {:request-method method
           :uri resource } ))

(deftest ^:unit tests
  (fact "Ping returns a pong"
        (:body (request :get "/1.x/ping"))  => "pong" )
)

(ns {{name}}.web_unit
  (:use [{{name}}.web]
        [clojure.test]
        [midje.sweet]))

(defn request [method resource]
  (routes {:request-method method
           :uri resource } ))

(deftest ^:unit tests
  (fact "Ping returns a pong"
        (:body (request :get "/1.x/ping"))  => "pong" )
)

Tidy using statements in unit tests
Tidy using statements in unit tests

Rather than (:use [a]) (:use [b]) use (:use [a] [b])

calumlean/mr-clojure,mixradio/mr-clojure