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.

Changeset [be0bf10a3cf5783f8859f73659c5fe3c16bd1ccd] by Carlhuda

Revision be0bf10a3cf5783f8859f73659c5fe3c16bd1ccd, committed by Carlhuda · February 27th, 2010 @ 12:06 AM

Upon further reflection, we realized that SharedTestRoutes is not really a hack, but is instead a standin (in the Rails tests) for Rails.application.routes.

  • In a real application, action_controller/railties.rb does AC::Base.include(app.routes.url_helpers)
  • ActionController itself does not know about Rails.application, but instead can have named routes for any router
  • SharedTestRoutes are created in abstract_unit to stand in for Rails.application.routes, and is used in internal functional tests http://github.com/rails/rails/commit/be0bf10a3cf5783f8859f73659c5fe...

1 changed file

  • M actionpack/test/abstract_unit.rb