Extended default route for match in tests - now it matches controller, action, id and format if given.

This fixes url_for tests
This commit is contained in:
Łukasz Strzałkowski 2010-08-05 16:13:12 +02:00 committed by Piotr Sarnacki
parent b3eb26a161
commit 7ff8a2040e
1 changed files with 2 additions and 2 deletions

View File

@ -121,11 +121,11 @@ module ActiveSupport
# 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