@@ -22,7 +22,9 @@
|
||||
(deftest swagger-spec-test
|
||||
(let [resp (request :get "/swagger.json")]
|
||||
(is (= 200 (:status resp)))
|
||||
(is (re-find #"/api/ping" (slurp (:body resp))))))
|
||||
(is (re-find #"/api/ping" (slurp (:body resp))))
|
||||
(is (not (re-find #"\"definitions\":null" (slurp (:body (request :get "/swagger.json")))))
|
||||
"a null `definitions` makes the spec invalid Swagger 2.0")))
|
||||
|
||||
(deftest unknown-route-test
|
||||
(is (= 404 (:status (request :get "/nope")))))
|
||||
|
||||
Reference in New Issue
Block a user