Kad Kerforn wrote:> I had to use sub-URI deployment (could not use subdomains..), and when
> running my functional tests, I the redirected_to assertion embed the
> prefix.. quite normal ;-))
>
> is there a way to stipulate this prefix in the test setup to avoid
> hard-coding in all the tests ?
>
> Expected response to be a redirect to <http://test.host/my/page>
> but was a redirect to <http://test.host/intranet/my/page>
>
> /intranet being the prefix in this case ..
>
> many thanks for your suggestions
>
> erwin
solved it , wrote in my test :
ActionController::Base.relative_url_root = ''intranet''
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---