Allow to use `hspec-wai` for individual examples
sol opened this issue · comments
Add
withApplication = flip runWaiSession
so that it can be used for individual examples, like so:
it "serves requests" $ withApplication app $ do
get "/" `shouldRespondWith` 200
In addition we may want to deprecated runWaiSession
.