This project is archived and is in readonly mode.

#1561 ✓resolved
Dan Pickett

ActionView::TestCase does not have current url context so url_for will fail for hashed options

Reported by Dan Pickett | December 11th, 2008 @ 03:57 PM | in 2.x

In testing my helpers, I discovered a nil.rewrite exception due to ActionController::Base.initialize_current_url not being called. This occurs when using url_for with a hash as arguments.

Attached is a patch to ActionView::TestCase which should resolve this issue

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Tags

Referenced by

Pages