hspec-expectations-lifted 0.9.0 → 0.10.0
raw patch · 2 files changed
+3/−3 lines, 2 files
Files
hspec-expectations-lifted.cabal view
@@ -1,5 +1,5 @@ name: hspec-expectations-lifted-version: 0.9.0+version: 0.10.0 synopsis: A version of hspec-expectations generalized to MonadIO description: A version of hspec-expectations generalized to MonadIO license: MIT
src/Test/Hspec/Expectations/Lifted.hs view
@@ -95,5 +95,5 @@ -- | -- @action \`shouldNotReturn\` notExpected@ sets the expectation that @action@ -- does not return @notExpected@.-shouldNotReturn :: (HasCallStack, MonadIO m, Show a, Eq a) => IO a -> a -> m ()-shouldNotReturn = liftIO2 E.shouldNotReturn+shouldNotReturn :: (HasCallStack, MonadIO m, Show a, Eq a) => m a -> a -> m ()+shouldNotReturn action expected = action >>= liftIO . (`E.shouldNotBe` expected)