Default_url_options

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs