Permalink
Browse files

Extended default route for match in tests - now it matches controller…

…, action, id and format if given.

This fixes url_for tests
  • Loading branch information...
1 parent b3eb26a commit 7ff8a2040eee6c7ce566844e9f5420709a9b67d1 @lukaszx0 lukaszx0 committed with drogus Aug 5, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/test/abstract_unit.rb
@@ -121,11 +121,11 @@ class TestCase
# have been loaded.
setup_once do
SharedTestRoutes.draw do
- match ':controller(/:action)'
+ match ':controller(/:action(/:id(.:format)))'
end
ActionController::IntegrationTest.app.routes.draw do
- match ':controller(/:action)'
+ match ':controller(/:action(/:id(.:format)))'
end
end
end

0 comments on commit 7ff8a20

Please sign in to comment.