RE: url_for in tests


#1

Mmmm not really…

include ActionView::Helpers::UrlHelper
url_for(:controller => ‘person’, :action => ‘view’, :id => 1)

gives a SystemStackError (too deep), and

ActionController::Base.new.url_for() says that @url isn’t defined. Maybe
I need to set up a controller and request/response object in the same
way the functional tests do.

-Jonny.


#2

I think the patch I just sent in might fix this for you:

http://dev.rubyonrails.org/ticket/3517

CHEERS> SAM