Skip to content

Commit

Permalink
Extended default route for match in tests - now it matches controller…
Browse files Browse the repository at this point in the history
…, action, id and format if given.

This fixes url_for tests
  • Loading branch information
lukaszx0 committed Aug 5, 2010
1 parent 13f9774 commit 05e9d0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actionpack/test/abstract_unit.rb
Expand Up @@ -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
Expand Down

0 comments on commit 05e9d0d

Please sign in to comment.