1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

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