aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/abstract_unit.rb
diff options
context:
space:
mode:
authorŁukasz Strzałkowski <lukasz.strzalkowski@gmail.com>2010-08-05 16:13:12 +0200
committerPiotr Sarnacki <drogus@gmail.com>2010-09-05 13:44:36 +0200
commit7ff8a2040eee6c7ce566844e9f5420709a9b67d1 (patch)
tree65d1e0a159272c1e42d5afc84a76f0477c838ab9 /actionpack/test/abstract_unit.rb
parentb3eb26a161acb23781e55fc6c37b948f160cd9b5 (diff)
downloadrails-7ff8a2040eee6c7ce566844e9f5420709a9b67d1.tar.gz
rails-7ff8a2040eee6c7ce566844e9f5420709a9b67d1.tar.bz2
rails-7ff8a2040eee6c7ce566844e9f5420709a9b67d1.zip
Extended default route for match in tests - now it matches controller, action, id and format if given.
This fixes url_for tests
Diffstat (limited to 'actionpack/test/abstract_unit.rb')
-rw-r--r--actionpack/test/abstract_unit.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/abstract_unit.rb b/actionpack/test/abstract_unit.rb
index 7080a87f42..0e84439c72 100644
--- a/actionpack/test/abstract_unit.rb
+++ b/actionpack/test/abstract_unit.rb
@@ -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