Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added test to verify NOTABUG [IMMUTANT-581]
Also updated pedestal version, though the test passes for the previous
version (0.3.1) as well.
  • Loading branch information
jcrossley3 committed Nov 11, 2015
1 parent edccef7 commit 00d60f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion project.clj
Expand Up @@ -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"
Expand Down
7 changes: 5 additions & 2 deletions web/test/immutant/web_test.clj
Expand Up @@ -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}))
Expand Down

0 comments on commit 00d60f6

Please sign in to comment.