packages feed

hspec 1.7.2 → 1.7.2.1

raw patch · 4 files changed

+48/−1 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

+ hspec-discover/integration-test/with-formatter/FooSpec.hs view
@@ -0,0 +1,12 @@+module FooSpec (main, spec) where++import           Test.Hspec++main :: IO ()+main = hspec spec++spec :: Spec+spec = do+  describe "reverse" $ do+    it "reverses a list" $ do+      reverse [1 :: Int, 2, 3] `shouldBe` [3, 2, 1]
+ hspec-discover/integration-test/with-io-formatter/FooSpec.hs view
@@ -0,0 +1,12 @@+module FooSpec (main, spec) where++import           Test.Hspec++main :: IO ()+main = hspec spec++spec :: Spec+spec = do+  describe "reverse" $ do+    it "reverses a list" $ do+      reverse [1 :: Int, 2, 3] `shouldBe` [3, 2, 1]
+ hspec-discover/integration-test/with-io-formatter/Formatter.hs view
@@ -0,0 +1,13 @@+module Formatter (count) where++import           Data.IORef+import           Control.Monad.IO.Class+import           Test.Hspec.Formatters++count :: IO Formatter+count = do+  ref <- newIORef (0 :: Int)+  return silent {+      exampleSucceeded = \_ -> liftIO (modifyIORef ref succ)+    , footerFormatter = liftIO (readIORef ref) >>= writeLine . show+    }
hspec.cabal view
@@ -1,5 +1,5 @@ name:             hspec-version:          1.7.2+version:          1.7.2.1 license:          MIT license-file:     LICENSE copyright:        (c) 2011-2013 Simon Hengel,@@ -186,6 +186,7 @@     , hspec-meta  test-suite hspec-discover-example+  buildable: False   type:       exitcode-stdio-1.0   ghc-options:@@ -200,6 +201,7 @@     , QuickCheck  test-suite hspec-discover-integration-test-empty+  buildable: False   type:       exitcode-stdio-1.0   ghc-options:@@ -213,6 +215,7 @@     , hspec  test-suite hspec-discover-integration-test-with-formatter+  buildable: False   type:       exitcode-stdio-1.0   ghc-options:@@ -221,11 +224,14 @@       hspec-discover/integration-test/with-formatter   main-is:       Spec.hs+  other-modules:+      FooSpec   build-depends:       base    == 4.*     , hspec  test-suite hspec-discover-integration-test-with-io-formatter+  buildable: False   type:       exitcode-stdio-1.0   ghc-options:@@ -234,12 +240,16 @@       hspec-discover/integration-test/with-io-formatter   main-is:       Spec.hs+  other-modules:+      FooSpec+      Formatter   build-depends:       base    == 4.*     , hspec     , transformers  test-suite hspec-discover-integration-test-with-formatter-empty+  buildable: False   type:       exitcode-stdio-1.0   ghc-options: