Url_for in tests


#1

Hi there,

I’ve added an extra bunch of testing features for doing in-browser
testing with Selenium, and am having quite a time figuring out how to
use url_for with having a controller object present. I’ve tried using
ActionController::Base.url_for and
ActionView::Helpers::UrlHelper.url_for but haven’t been able to get
something that works.

What I want to be able to do is call url_for(:controller => ‘test’,
:action => ‘index’) and have the URL string returned, anyone know how to
do this?

Cheers, Jonathan.


#2

I think that it might be:

:use_full_path => true

Mark

On 1/11/06, Jonathan V. removed_email_address@domain.invalid wrote:

ActionController::Base.url_for and ActionView::Helpers::UrlHelper.url_for


Rails mailing list
removed_email_address@domain.invalid
http://lists.rubyonrails.org/mailman/listinfo/rails