Simon Hengel

Results 312 comments of Simon Hengel

Hi, sorry for the late reply. I don't have much time to put into this, but here are some pointers. Before we start, a general disclaimer (you are probably already...

Example for using `aroundWith`: ``` haskell {-# LANGUAGE OverloadedStrings #-} module AppSpec (spec) where import Test.Hspec import Test.Hspec.Wai import Network.Wai data Connection mkApplication :: Connection -> Application mkApplication = undefined...

Example for using `withApplication`: ``` haskell {-# LANGUAGE OverloadedStrings #-} module AppSpec (spec) where import Test.Hspec import Test.Hspec.Wai import Test.Hspec.Wai.Internal import Network.Wai data Connection mkApplication :: Connection -> Application mkApplication...

One more note, a convenient way to reset the database into a pristine state is to create a transaction before each test and do a rollback after.

You probably want to use spec hooks: https://hspec.github.io/hspec-discover.html#spec-hooks We probably want to add an example to the README. PRs welcome.

Hey, Yes, you are right. I already started in that direction on branch https://github.com/hspec/hspec-wai/tree/re-exports. Do you want to take a look, augment it if needed and open a PR?

I reverted this, because from my perspective it's not entirely clear what we would need to re-export and what not (e.g. what about hooks). The underlying issues as I see...

This is a bug in `fsnotify` from what I can tell.

I think this has been fixed upstream.