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:
parent
b3eb26a161
commit
7ff8a2040e
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue