RailsCasts Pro episodes are now free!

Learn more or hide this

csommerauer's Profile

GitHub User: csommerauer

Comments by


Hi Ryan,

having issues testing my helpers using Test::Unit. It seems that when a helper method uses url_for (i.e. link_to) it doesn't call the modified url_for method in the UrlHelper module.

I've added

class GenericHelperTest < ActionView::TestCase
  include UrlHelper
  include Rails.application.routes.url_helpers

but that doesn't help.

Any hint?