From a00798a0f5590928aceb0dceabc4207bea68cd0c Mon Sep 17 00:00:00 2001 From: Unknown Date: Tue, 16 Oct 2018 22:57:33 +0900 Subject: [PATCH] Adjust tests to allow string keys --- test/cljc/reitit/ring_spec_test.cljc | 4 +--- test/cljc/reitit/spec_test.cljc | 6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) 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