packages feed

hspec-wai 0.8.0 → 0.9.0

raw patch · 3 files changed

+25/−24 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Test.Hspec.Wai.Matcher: formatHeader :: Header -> String
- Test.Hspec.Wai.QuickCheck: arbitrary :: Gen a
+ Test.Hspec.Wai.QuickCheck: arbitrary :: Arbitrary a => Gen a
- Test.Hspec.Wai.QuickCheck: shrink :: a -> [a]
+ Test.Hspec.Wai.QuickCheck: shrink :: Arbitrary a => a -> [a]

Files

hspec-wai.cabal view
@@ -1,9 +1,9 @@--- This file has been generated from package.yaml by hpack version 0.15.0.+-- This file has been generated from package.yaml by hpack version 0.19.3. -- -- see: https://github.com/sol/hpack  name:             hspec-wai-version:          0.8.0+version:          0.9.0 homepage:         https://github.com/hspec/hspec-wai#readme bug-reports:      https://github.com/hspec/hspec-wai/issues license:          MIT@@ -32,18 +32,18 @@       src   ghc-options: -Wall   build-depends:-      base == 4.*+      QuickCheck+    , base ==4.*     , base-compat-    , bytestring >= 0.10-    , text-    , transformers+    , bytestring >=0.10     , case-insensitive+    , hspec-core ==2.*+    , hspec-expectations >=0.8.0     , http-types-    , wai >= 3-    , wai-extra >= 3-    , hspec-core == 2.*-    , hspec-expectations >= 0.8.0-    , QuickCheck+    , text+    , transformers+    , wai >=3+    , wai-extra >=3   exposed-modules:       Test.Hspec.Wai       Test.Hspec.Wai.QuickCheck@@ -62,20 +62,19 @@       test   ghc-options: -Wall   build-depends:-      base == 4.*+      QuickCheck+    , base ==4.*     , base-compat-    , bytestring >= 0.10-    , text-    , transformers+    , bytestring >=0.10     , case-insensitive-    , http-types-    , wai >= 3-    , wai-extra >= 3-    , hspec-core == 2.*-    , hspec-expectations >= 0.8.0-    , QuickCheck     , hspec-    , QuickCheck+    , hspec-core ==2.*+    , hspec-expectations >=0.8.0+    , http-types+    , text+    , transformers+    , wai >=3+    , wai-extra >=3   other-modules:       Test.Hspec.Wai       Test.Hspec.Wai.Internal@@ -85,4 +84,5 @@       Test.Hspec.Wai.MatcherSpec       Test.Hspec.Wai.UtilSpec       Test.Hspec.WaiSpec+      Paths_hspec_wai   default-language: Haskell2010
src/Test/Hspec/Wai.hs view
@@ -99,7 +99,7 @@ -- `matchHeaders`: -- -- > get "/" `shouldRespondWith` "foo" {matchHeaders = ["Content-Type" <:> "text/plain"]}--- > -- matches if body is "foo", status is 200 and ther is a header field "Content-Type: text/plain"+-- > -- matches if body is "foo", status is 200 and there is a header field "Content-Type: text/plain" shouldRespondWith :: HasCallStack => WaiSession SResponse -> ResponseMatcher -> WaiExpectation shouldRespondWith action matcher = do   r <- action@@ -141,6 +141,6 @@ -- The specified list of key-value pairs is encoded as -- @application/x-www-form-urlencoded@ and used as request body. ----- In additon the @Content-Type@ is set to @application/x-www-form-urlencoded@.+-- In addition the @Content-Type@ is set to @application/x-www-form-urlencoded@. postHtmlForm :: ByteString -> [(String, String)] -> WaiSession SResponse postHtmlForm path = request methodPost path [(hContentType, "application/x-www-form-urlencoded")] . formUrlEncodeQuery
src/Test/Hspec/Wai/Matcher.hs view
@@ -7,6 +7,7 @@ , (<:>) , bodyEquals , match+, formatHeader ) where  import           Prelude ()