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.
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to