packages feed

hspec-wai 0.3.0.1 → 0.3.0.2

raw patch · 3 files changed

+5/−43 lines, 3 filesdep −doctestPVP ok

version bump matches the API change (PVP)

Dependencies removed: doctest

API changes (from Hackage documentation)

Files

README.lhs view
@@ -14,11 +14,9 @@ import           Test.Hspec.Wai import           Test.Hspec.Wai.JSON -import           Network.HTTP.Types (hContentType) import           Network.Wai (Application)--import           Data.Aeson (Value(..), object, (.=)) import qualified Web.Scotty as S+import           Data.Aeson (Value(..), object, (.=))  main :: IO () main = hspec spec@@ -46,7 +44,7 @@       get "/" `shouldRespondWith` "hello" {matchStatus = 200}      it "has Content-Type: text/plain" $ do-      get "/" `shouldRespondWith` 200 {matchHeaders = [(hContentType, "text/plain")]}+      get "/" `shouldRespondWith` 200 {matchHeaders = [("Content-Type", "text/plain")]}    describe "GET /some-json" $ do     it "responds with some JSON" $ do
hspec-wai.cabal view
@@ -1,5 +1,5 @@ name:             hspec-wai-version:          0.3.0.1+version:          0.3.0.2 license:          MIT license-file:     LICENSE copyright:        (c) 2012-2014 Fujimura Daisuke,@@ -46,7 +46,7 @@   type:       exitcode-stdio-1.0   ghc-options:-      -Wall -Werror+      -Wall   hs-source-dirs:       src, test   main-is:@@ -64,24 +64,11 @@      , hspec-meta -test-suite doctests-  main-is:-      doctests.hs-  type:-      exitcode-stdio-1.0-  ghc-options:-      -Wall -Werror -threaded-  hs-source-dirs:-      test-  build-depends:-      base    == 4.*-    , doctest >= 0.9.4.1- test-suite README   type:       exitcode-stdio-1.0   ghc-options:-      -Wall -Werror -pgmL markdown-unlit+      -Wall -pgmL markdown-unlit   main-is:       README.lhs   build-depends:@@ -89,7 +76,6 @@     , markdown-unlit     , hspec2     , hspec-wai-    , http-types     , aeson     , wai     , scotty
− test/doctests.hs
@@ -1,22 +0,0 @@-module Main where--import           Test.DocTest--main :: IO ()-main = doctest [-    "-isrc"-  , "-hide-all-packages"-  , "-package base"-  , "-package bytestring"-  , "-package text"-  , "-package transformers"-  , "-package case-insensitive"-  , "-package http-types"-  , "-package wai"-  , "-package wai-extra"-  , "-package hspec2"-  , "-package template-haskell"-  , "-package aeson"-  , "-package aeson-qq"-  , "src/Test/Hspec/Wai/JSON.hs"-  ]