on master help sign in
Fix up tests
commitbc4f85510a89235807030c76ade2913c0cc0fdba authorMichael Snoyman <michael@snoyman.com> dateWed 14 Jan 2015, 12:27 (12 years ago) parent000490a
2 files changed+5−5
wai-app-static/test/WaiAppStaticTest.hs+4−4 wai-app-static/wai-app-static.cabal+1−1
wai-app-static/test/WaiAppStaticTest.hs+4−4
@@ -126,13 +126,13 @@ spec = do
126126
127127 context "301 redirect to add a trailing slash on directories if missing" $ do
128128 it "works at the root" $ fileServerApp $ do
129− req <- request (setRawPathInfo defRequest "a")
129+ req <- request (setRawPathInfo defRequest "/a")
130130 assertStatus 301 req
131− assertHeader "Location" "../a/" req
131+ assertHeader "Location" "/a/" req
132132
133133 let urlMapApp = flip runSession $ mapUrls $
134134 mount "subPath" (staticApp $ defaultFileServerSettings "test")
135135 it "works in conjunction with UrlMap at the root of the file server" $ urlMapApp $ do
136− req <- request (setRawPathInfo defRequest "subPath")
136+ req <- request (setRawPathInfo defRequest "/subPath")
137137 assertStatus 301 req
138− assertHeader "Location" "../subPath/" req
138+ assertHeader "Location" "/subPath/" req
wai-app-static/wai-app-static.cabal+1−1
@@ -95,7 +95,7 @@ test-suite runtests
9595 , old-locale
9696 , http-date
9797 , wai-app-static
98− , wai-extra
98+ , wai-extra >= 3.0.4.2
9999 , wai
100100 , http-types
101101 , network