on master help sign in
wai-app-static: Require hspec-1.3.*, get rid of deprecation warnings
commit22d8ef309e4dc35ed4dd500f21290da10b30b008 authorSimon Hengel <sol@typeful.net> dateSat 15 Sep 2012, 13:36 (14 years ago) parent9678172
3 files changed+8−9
wai-app-static/test/WaiAppStaticTest.hs+4−5 wai-app-static/tests.hs+3−3 wai-app-static/wai-app-static.cabal+1−1
wai-app-static/test/WaiAppStaticTest.hs+4−5
@@ -1,10 +1,9 @@
11{-# LANGUAGE OverloadedStrings, NoMonomorphismRestriction #-}
2−module WaiAppStaticTest (specs) where
2+module WaiAppStaticTest (spec) where
33
44import Network.Wai.Application.Static
55
6−import Test.Hspec.Monadic
7−import Test.Hspec.HUnit ()
6+import Test.Hspec
87import Test.HUnit ((@?=))
98import qualified Data.ByteString.Char8 as S8
109-- import qualified Data.ByteString.Lazy.Char8 as L8
@@ -23,8 +22,8 @@ import Network.Mime
2322defRequest :: Request
2423defRequest = defaultRequest
2524
26−specs :: Specs
27−specs = do
25+spec :: Spec
26+spec = do
2827 let webApp = flip runSession $ staticApp $ defaultWebAppSettings "test"
2928 let fileServerApp = flip runSession $ staticApp $ defaultFileServerSettings "test"
3029
wai-app-static/tests.hs+3−3
@@ -1,5 +1,5 @@
1−import WaiAppStaticTest (specs)
1+import WaiAppStaticTest (spec)
22import Test.Hspec.Monadic
33
4−main :: IO a
5−main = hspecX specs
4+main :: IO ()
5+main = hspec spec
wai-app-static/wai-app-static.cabal+1−1
@@ -65,7 +65,7 @@ test-suite runtests
6565 type: exitcode-stdio-1.0
6666
6767 build-depends: base >= 4 && < 5
68− , hspec >= 0.8
68+ , hspec == 1.3.*
6969 , HUnit
7070 , unix-compat
7171 , time