mirror of
https://github.com/metosin/reitit.git
synced 2025-12-17 16:31:11 +00:00
Merge pull request #415 from Koura/cleanup-test-namespaces
Cleanup test namespaces
This commit is contained in:
commit
0ffef07cbf
2 changed files with 4 additions and 5 deletions
|
|
@ -171,7 +171,7 @@
|
|||
(testing "handler rejects"
|
||||
(is (= -406 (:status (app {:request-method :get, :uri "/pong"}))))))))))
|
||||
|
||||
(deftest default-options-handler-test
|
||||
(deftest deprecated-default-options-handler-test
|
||||
(testing "Assertion fails when using deprecated options-handler"
|
||||
(is (thrown? ExceptionInfo (ring/router [] {::ring/default-options-handler (fn [_])})))))
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@
|
|||
[reitit.coercion.spec :as spec]
|
||||
[reitit.coercion.malli :as malli]
|
||||
[reitit.coercion.schema :as schema]
|
||||
[schema.core :refer [Int]]
|
||||
[muuntaja.core :as m]
|
||||
[spec-tools.data-spec :as ds]
|
||||
[schema.core :as s]))
|
||||
|
|
@ -77,11 +76,11 @@
|
|||
["/schema" {:coercion schema/coercion}
|
||||
["/plus/*z"
|
||||
{:get {:summary "plus"
|
||||
:parameters {:query {:x Int, :y Int}
|
||||
:path {:z Int}}
|
||||
:parameters {:query {:x s/Int, :y s/Int}
|
||||
:path {:z s/Int}}
|
||||
:swagger {:responses {400 {:schema {:type "string"}
|
||||
:description "kosh"}}}
|
||||
:responses {200 {:body {:total Int}}
|
||||
:responses {200 {:body {:total s/Int}}
|
||||
500 {:description "fail"}}
|
||||
:handler (fn [{{{:keys [x y]} :query
|
||||
{:keys [z]} :path} :parameters}]
|
||||
|
|
|
|||
Loading…
Reference in a new issue