[rspec-users] default_url_options

Jonathan Linowes jonathan at parkerhill.com
Wed Dec 12 00:19:09 EST 2007


Hi,

i recently added a def default_url_options to application.rb (used by  
url_for , *_path etc). My method references request (eg  
request.domain) . But when I spec a controller, its dies in  
default_url_options with nil.domain, Is there a way for it to see  
"request"?
I prefer to not have to stub it on every example.

linoj


More information about the rspec-users mailing list