hspec / hspec-wai

Helpers to test WAI applications with Hspec

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.