LearnBoost / tobi

Tobi: Expressive server-side functional testing with jQuery
408 stars 33 forks source link

Always attach `body` to response object? #79

Open iangreenleaf opened 12 years ago

iangreenleaf commented 12 years ago

I'm trying to test an image request with tobi and want to check that the body is being sent correctly. Unfortunately, the params that are given for non html/json responses don't contain any way to get at the body (that I can see).

Would there be any problem with always attaching the body at res.body, like is currently done with json requests?

I'll code up a pull request if you like this idea.

iangreenleaf commented 12 years ago

83 is probably related to this.