mirror of
https://github.com/journeyman-cc/smeagol.git
synced 2026-04-12 18:05:06 +00:00
Initial commit, not yet complete.
This commit is contained in:
parent
53885f696d
commit
d437f07fc2
33 changed files with 884 additions and 3 deletions
13
test/smeagol/test/handler.clj
Normal file
13
test/smeagol/test/handler.clj
Normal 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))))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue