scotty 0.11.4 → 0.11.5
raw patch · 3 files changed
+7/−6 lines, 3 filesdep ~hspec-waiPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: hspec-wai
API changes (from Hackage documentation)
Files
- changelog.md +3/−0
- scotty.cabal +2/−2
- test/Web/ScottySpec.hs +2/−4
changelog.md view
@@ -1,3 +1,6 @@+## 0.11.5 [2019.09.07]+* Allow building the test suite with `hspec-wai-0.10`.+ ## 0.11.4 [2019.05.02] * Allow building with `base-4.13` (GHC 8.8).
scotty.cabal view
@@ -1,5 +1,5 @@ Name: scotty-Version: 0.11.4+Version: 0.11.5 Synopsis: Haskell web framework inspired by Ruby's Sinatra, using WAI and Warp Homepage: https://github.com/scotty-web/scotty Bug-reports: https://github.com/scotty-web/scotty/issues@@ -95,7 +95,7 @@ transformers-compat >= 0.4 && < 0.7, wai >= 3.0.0 && < 3.3, wai-extra >= 3.0.0 && < 3.1,- warp >= 3.0.13 && < 3.3+ warp >= 3.0.13 && < 3.4 GHC-options: -Wall -fno-warn-orphans
test/Web/ScottySpec.hs view
@@ -3,7 +3,6 @@ import Test.Hspec import Test.Hspec.Wai-import Network.Wai (Application) import Control.Applicative import Control.Monad@@ -33,9 +32,6 @@ availableMethods :: [StdMethod] availableMethods = [GET, POST, HEAD, PUT, PATCH, DELETE, OPTIONS] -withApp :: ScottyM () -> SpecWith Application -> Spec-withApp = with . scottyApp- spec :: Spec spec = do describe "ScottyM" $ do@@ -174,6 +170,8 @@ where ok, no :: ByteString ok = "HTTP/1.1 200 OK" no = "HTTP/1.1 404 Not Found"++ withApp = with . scottyApp socketPath :: FilePath socketPath = "/tmp/scotty-test.socket"