This project is archived and is in readonly mode.

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
- 
            
         Matt Jankowski December 11th, 2008 @ 04:29 PM+1 It would be great to have some version of ActionView::TestCase which did not have to be patched in test_helper to work correctly when testing url_for and friends. 
- 
         josh December 15th, 2008 @ 05:43 PM- Assigned user set to josh
 
- 
         Repository December 15th, 2008 @ 05:49 PM- State changed from new to resolved
 (from [38412ecb5daa1826574ad0f132d23dc2ef4288bf]) Fixed ActionView::TestCase current url context [#1561 state:resolved] Signed-off-by: Joshua Peek josh@joshpeek.com http://github.com/rails/rails/co... 
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>
People watching this ticket
Attachments
Tags
Referenced by
- 
         1561 
          ActionView::TestCase does not have current url context so url_for will fail for hashed options
        (from [38412ecb5daa1826574ad0f132d23dc2ef4288bf]) Fixed
A... 1561 
          ActionView::TestCase does not have current url context so url_for will fail for hashed options
        (from [38412ecb5daa1826574ad0f132d23dc2ef4288bf]) Fixed
A...
 Bill Burcham
      Bill Burcham
 Dan Pickett
      Dan Pickett
 josh
      josh
 Matt Jankowski
      Matt Jankowski
 Mike Breen
      Mike Breen