RE: url_for in tests

Mmmm not really…

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

gives a SystemStackError (too deep), and 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.


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


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