diff --git a/test/cljc/reitit/ring_spec_test.cljc b/test/cljc/reitit/ring_spec_test.cljc index 73c41c5c..8509bb14 100644 --- a/test/cljc/reitit/ring_spec_test.cljc +++ b/test/cljc/reitit/ring_spec_test.cljc @@ -99,9 +99,7 @@ :coercion reitit.coercion.spec/coercion} :validate rrs/validate-spec!}))) - (is (thrown-with-msg? - ExceptionInfo - #"Invalid route data" + (is (r/router? (ring/router ["/api" ["/plus/:e" diff --git a/test/cljc/reitit/spec_test.cljc b/test/cljc/reitit/spec_test.cljc index 38988e77..9c6d00e2 100644 --- a/test/cljc/reitit/spec_test.cljc +++ b/test/cljc/reitit/spec_test.cljc @@ -116,9 +116,9 @@ :header {:d string?} :path {:e string?}}})) - (is (not (s/valid? - ::rs/parameters - {:parameters {:header {"d" string?}}}))) + (is (s/valid? + ::rs/parameters + {:parameters {:header {"d" string?}}})) (is (s/valid? ::rs/responses