first version of sample parser.

This commit is contained in:
Bryce Covert
2017-12-06 17:55:09 -08:00
commit 0c442b29e0
10 changed files with 176 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
(ns auto-ap.handler-test
(:require [clojure.test :refer :all]
[ring.mock.request :as mock]
[auto-ap.handler :refer :all]))
(deftest test-app
(testing "main route"
(let [response (app (mock/request :get "/"))]
(is (= (:status response) 200))
(is (= (:body response) "Hello World"))))
(testing "not-found route"
(let [response (app (mock/request :get "/invalid"))]
(is (= (:status response) 404)))))