diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2012-08-04 19:01:37 +0100 |
---|---|---|
committer | Andrew White <andyw@pixeltrix.co.uk> | 2012-08-04 19:02:58 +0100 |
commit | c5807728d52c98b76e9badd95093471044b98d07 (patch) | |
tree | 2f2f2e13b5698025489907393f20671936e8f766 /actionpack/test/activerecord/polymorphic_routes_test.rb | |
parent | 4059423809c38d2365701ce055e97420228a87db (diff) | |
download | rails-c5807728d52c98b76e9badd95093471044b98d07.tar.gz rails-c5807728d52c98b76e9badd95093471044b98d07.tar.bz2 rails-c5807728d52c98b76e9badd95093471044b98d07.zip |
Revert "polymorphic_url with an array generates a query string"
Passing options as the last value in an array doesn't work with form_for.
This reverts commit 61c8a4d926343903593a27080216af7e4ed81268.
Diffstat (limited to 'actionpack/test/activerecord/polymorphic_routes_test.rb')
-rw-r--r-- | actionpack/test/activerecord/polymorphic_routes_test.rb | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/actionpack/test/activerecord/polymorphic_routes_test.rb b/actionpack/test/activerecord/polymorphic_routes_test.rb index 3e6dce9590..afb714484b 100644 --- a/actionpack/test/activerecord/polymorphic_routes_test.rb +++ b/actionpack/test/activerecord/polymorphic_routes_test.rb @@ -309,20 +309,6 @@ class PolymorphicRoutesTest < ActionController::TestCase end end - def test_with_array_containing_simple_hash - with_test_routes do - @project.save - assert_equal "http://example.com/projects/#{@project.id}?foo=bar", polymorphic_url([@project, :foo => 'bar' ]) - end - end - - def test_with_array_containing_complex_hash - with_test_routes do - @project.save - assert_equal "http://example.com/projects/#{@project.id}?foo=bar&nested%5Bfoo%5D=bar", polymorphic_url([@project, :nested => { :foo => 'bar' }, :foo => 'bar']) - end - end - def test_with_array_containing_single_name with_test_routes do @project.save |