From 7ff8a2040eee6c7ce566844e9f5420709a9b67d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Strza=C5=82kowski?= Date: Thu, 5 Aug 2010 16:13:12 +0200 Subject: Extended default route for match in tests - now it matches controller, action, id and format if given. This fixes url_for tests --- actionpack/test/abstract_unit.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack') 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 -- cgit v1.2.3