[rspec-users] Default format for all requests in a spec
dchelimsky at gmail.com
Thu Aug 26 09:16:12 EDT 2010
On Aug 26, 2010, at 8:12 AM, Maurício Linhares wrote:
> Hi guys,
> Is there a way to define a default parameter for all requests made in a spec?
> I have a spec where I want all requests to be made with the "js"
> format but I find it rather annoying to type a ":format => 'js'" on
> every get/post/put/delete. Is there any other way to do this?
Nope. I'd recommend making a feature request in rails for this: https://rails.lighthouseapp.com/projects/8994.
More information about the rspec-users