From 7f558cbd05535f80dfb56198c803df09896c202b Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 13 Apr 2005 05:35:51 +0000 Subject: Fixed that *rest parameter in map.connect couldn't accept an empty list #1037 [Dee.Zsombor@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1158 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/controller/routing_tests.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'actionpack/test') diff --git a/actionpack/test/controller/routing_tests.rb b/actionpack/test/controller/routing_tests.rb index a5b6066d66..0f5987e69e 100644 --- a/actionpack/test/controller/routing_tests.rb +++ b/actionpack/test/controller/routing_tests.rb @@ -343,7 +343,10 @@ class RouteTests < Test::Unit::TestCase {}) end - + def test_path_empty_list + route '*a', :controller => 'content' + verify_recognize '', :controller => 'content', :a => [] + end def test_special_characters route ':id', :controller => 'content', :action => 'fish' -- cgit v1.2.3