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 13f9774 commit 05e9d0df0dea68ca4655aa8723c3ee69049fac78 @lukaszx0 lukaszx0 committed Aug 5, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/test/abstract_unit.rb
@@ -113,11 +113,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 05e9d0d

Please sign in to comment.