packages feed

hspec 0.5.0 → 0.6.0

raw patch · 3 files changed

+12/−7 lines, 3 filesdep ~silentlyPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: silently

API changes (from Hackage documentation)

- Test.Hspec.Monadic: descriptions :: [IO [IO Spec]] -> IO [IO Spec]
+ Test.Hspec.Monadic: descriptions :: [Specs] -> Specs

Files

Specs.hs view
@@ -18,13 +18,13 @@ main = do   ar <- getArgs   ss <- case ar of-    ["README"] -> withFile "README" WriteMode (\ h -> hPutStrLn h preable >> hHspec h specs)+    ["README"] -> withFile "README" WriteMode (\ h -> hPutStrLn h preamble >> hHspec h specs)     [filename] -> withFile filename WriteMode (\ h -> hHspec h specs)     _          -> hspec specs   exitWith $ toExitCode (failedCount ss == 0) -preable :: String-preable = unlines [+preamble :: String+preamble = unlines [     "hspec aims to be a simple, extendable, and useful tool for Behavior Driven Development in Haskell.", "",     "",     "Step 1, write descriptions and examples of your desired behavior",
Test/Hspec/Monadic.hs view
@@ -76,7 +76,7 @@ ) where  import System.IO-import Test.Hspec.Core hiding (describe,it)+import Test.Hspec.Core hiding (describe,descriptions,it) import qualified Test.Hspec.Core as Core import qualified Test.Hspec.Runner as Runner @@ -106,10 +106,15 @@ hHspec h = Runner.hHspec h . runSpecM  runSpecM :: Specs -> IO [IO Spec]-runSpecM specs = descriptions $ execWriter specs+runSpecM specs = Core.descriptions $ execWriter specs  describe :: String -> Writer [ItSpec] () -> Specs describe label action = tell [Core.describe label (execWriter action)]++-- | Combine a list of descriptions. (Note that descriptions can also+-- be combined with monadic sequencing.)+descriptions :: [Specs] -> Specs+descriptions = sequence_  it :: SpecVerifier v => String -> v -> Writer [ItSpec] () it label action = tell [Core.it label action]
hspec.cabal view
@@ -1,5 +1,5 @@ name:           hspec-version:        0.5.0+version:        0.6.0 cabal-version:  -any build-type:     Custom license:        BSD3@@ -26,7 +26,7 @@ build-depends: HUnit >=1 && <=2,                QuickCheck >=2.4.0.1 && <=2.5,                base >=4 && <=5,-               silently == 1.1.1,+               silently >= 1.1.1 && < 2,                ansi-terminal == 0.5.5,                transformers >= 0.2.0 && < 0.3.0