aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/url_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/controller/url_test.rb')
-rw-r--r--actionpack/test/controller/url_test.rb13
1 files changed, 12 insertions, 1 deletions
diff --git a/actionpack/test/controller/url_test.rb b/actionpack/test/controller/url_test.rb
index b595b1c25c..8315830776 100644
--- a/actionpack/test/controller/url_test.rb
+++ b/actionpack/test/controller/url_test.rb
@@ -246,7 +246,18 @@ class UrlTest < Test::Unit::TestCase
)
end
end
-
+
+ def test_parameters_with_array
+ @clean_urls.each do |url|
+ assert_equal(
+ "http://www.singlefile.com/identity/show?id[]=3&id[]=5&id[]=10",
+ url.rewrite(
+ :action => "show",
+ :params => { 'id' => [ 3, 5, 10 ] } )
+ )
+ end
+ end
+
def test_action_with_id
assert_equal(
"http://www.singlefile.com/identity/show/7",