This project is archived and is in readonly mode.

#1208 ✓resolved
Eloy Duran

Make sure named routes with parameters can be used in tests before a request has been done.

Reported by Eloy Duran | October 13th, 2008 @ 03:16 PM | in 2.x

Before (in a functional test):


def test_something
  # artist_url(:id => 1) # Errors…
  get :edit, :id => 1
  artist_url(:id => 1) # Now it works.
end

So with this patch the route will work before the request.

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>

People watching this ticket

Attachments

Referenced by

Pages