Initial commit, not yet complete.

This commit is contained in:
simon 2014-11-10 13:18:07 +00:00
parent 53885f696d
commit d437f07fc2
33 changed files with 884 additions and 3 deletions

View file

@ -0,0 +1,13 @@
(ns smeagol.test.handler
(:use clojure.test
ring.mock.request
smeagol.handler))
(deftest test-app
(testing "main route"
(let [response (app (request :get "/"))]
(is (= 200 (:status response)))))
(testing "not-found route"
(let [response (app (request :get "/invalid"))]
(is (= 404 (:status response))))))