hspec-meta 1.5.0 → 1.5.1
raw patch · 2 files changed
+5/−13 lines, 2 filesdep +quickcheck-iodep ~hspec-expectationsPVP ok
version bump matches the API change (PVP)
Dependencies added: quickcheck-io
Dependency ranges changed: hspec-expectations
API changes (from Hackage documentation)
Files
- hspec-meta.cabal +3/−2
- src/Test/Hspec/Core/Type.hs +2/−11
hspec-meta.cabal view
@@ -1,5 +1,5 @@ name: hspec-meta-version: 1.5.0+version: 1.5.1 license: BSD3 license-file: LICENSE copyright: (c) 2011-2013 Simon Hengel, (c) 2011-2012 Trystan Spangler, (c) 2011 Greg Weber@@ -52,7 +52,8 @@ , transformers >= 0.2.2.0 && < 0.4.0 , HUnit >= 1.2.5 , QuickCheck >= 2.5.1- , hspec-expectations == 0.3.0.*+ , quickcheck-io+ , hspec-expectations == 0.3.2.* exposed-modules: Test.Hspec.Meta other-modules:
src/Test/Hspec/Core/Type.hs view
@@ -32,9 +32,11 @@ import qualified Test.QuickCheck as QC import qualified Test.QuickCheck.State as QC import qualified Test.QuickCheck.Property as QCP+import qualified Test.QuickCheck.IO () import Test.Hspec.Compat (isUserInterrupt) + type Spec = SpecM () -- | A writer monad for `SpecTree` forests.@@ -138,17 +140,6 @@ where n = length prefix prefix = "*** Failed! Exception: '"--instance QC.Testable Expectation where- property = propertyIO- exhaustive _ = True--propertyIO :: Expectation -> QC.Property-propertyIO action = QCP.morallyDubiousIOProperty $ do- (action >> return succeeded) `E.catch` \(HUnitFailure err) -> return (failed err)- where- succeeded = QC.property QCP.succeeded- failed err = QC.property QCP.failed {QCP.reason = err} -- | Specifies a pending example. --