hspec / hspec-wai

Helpers to test WAI applications with Hspec
MIT License
65 stars 25 forks source link

Allow to use `hspec-wai` for individual examples #26

Closed sol closed 9 years ago

sol commented 9 years ago

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.