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
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user