[rspec-users] Default format for all requests in a spec

Maurício Linhares mauricio.linhares at gmail.com
Thu Aug 26 09:12:28 EDT 2010

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?

Maurício Linhares
http://codeshooter.wordpress.com/ | http://twitter.com/mauriciojr

More information about the rspec-users mailing list