Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

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

#1208

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.

Reported by Eloy Duran · October 13th, 2008 @ 03:16 PM

State: resolved
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Repository
    Repository
    • State changed from new to resolved

    (from [b47c76b1dfaaf1d99413b94179077cd58552ba88]) Make sure named routes with parameters can be used in tests before a request has been done. [#1208 Make sure named routes with parameters can be used in tests before a request ... state:resolved]

    Signed-off-by: Pratik Naik pratiknaik@gmail.com http://github.com/rails/rails/co...

    October 13th, 2008 @ 05:42 PM