This project is archived and is in readonly mode.

Changeset [be0bf10a3cf5783f8859f73659c5fe3c16bd1ccd] 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...

Committed by Carlhuda

  • M actionpack/test/abstract_unit.rb

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>