Browse files

Upon further reflection, we realized that SharedTestRoutes is not rea…

…lly 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
  • Loading branch information...
1 parent 74df779 commit be0bf10a3cf5783f8859f73659c5fe3c16bd1ccd Carlhuda committed Feb 26, 2010
Showing with 0 additions and 1 deletion.
  1. +0 −1 actionpack/test/abstract_unit.rb
View
1 actionpack/test/abstract_unit.rb
@@ -205,7 +205,6 @@ class TestCase
include ActionDispatch::TestProcess
setup do
- # ROUTES TODO: The router object should come from somewhere sane
@router = SharedTestRoutes
end

0 comments on commit be0bf10

Please sign in to comment.