hspec / hspec-wai

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

Add helpers for HTTP methods taking params #23

Closed Jonplussed closed 10 years ago

Jonplussed commented 10 years ago

Add versions of post, put, patch which take parameters in a form-encoded format. These functions take a list of key/values, generate the bytestring body, and supply the requiste headers for WAI.

sol commented 10 years ago

@Jonplussed Hey, I just applied this. Thanks a lot!

I'm still considering to rename it to postQuery or postParams. What would be your preference?

Jonplussed commented 10 years ago

I love postQuery, and thanks!

sol commented 10 years ago

Hey, cool, same though here. Let's do it!