diff --git a/project.clj b/project.clj index 33750fe3..cce51827 100644 --- a/project.clj +++ b/project.clj @@ -81,7 +81,7 @@ cheshire "5.4.0" data.fressian "0.2.0" core.memoize "0.5.6" - io.pedestal "0.3.1" + io.pedestal "0.4.1" http.async.client "0.5.2" gniazdo "0.4.1b" compojure "1.3.4" diff --git a/web/test/immutant/web_test.clj b/web/test/immutant/web_test.clj index 417f846b..01b7dd20 100644 --- a/web/test/immutant/web_test.clj +++ b/web/test/immutant/web_test.clj @@ -42,11 +42,14 @@ (when (re-find #"(?i)^windows" (System/getProperty "os.name")) (Thread/sleep 100))) -(deftest mount-and-remount-pedestal-service +(deftest mount-remount-and-share-pedestal-service (run pedestal/servlet) (is (= "Hello World!" (get-body url))) (run pedestal/servlet) - (is (= "Hello World!" (get-body url)))) + (is (= "Hello World!" (get-body url))) + (run hello :path "/some-path") + (is (= "Hello World!" (get-body url))) + (is (= "hello" (get-body (str url "some-path"))))) (deftest nil-body (run (constantly {:status 200 :body nil}))