diff options
author | José Valim <jose.valim@gmail.com> | 2009-10-28 14:13:48 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-10-28 14:13:48 -0500 |
commit | 427a7385eb9b784ad4372bf607217b0b7b2ca543 (patch) | |
tree | 3cbbd7d6ab19a349473f109b2e0867f6090f6ce6 /actionpack/test/activerecord | |
parent | f51ac9e78014b6be531b4413de79fb041721df11 (diff) | |
download | rails-427a7385eb9b784ad4372bf607217b0b7b2ca543.tar.gz rails-427a7385eb9b784ad4372bf607217b0b7b2ca543.tar.bz2 rails-427a7385eb9b784ad4372bf607217b0b7b2ca543.zip |
Make polymorphic_url work with symbols again and refactor it [#1384 status:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
Diffstat (limited to 'actionpack/test/activerecord')
-rw-r--r-- | actionpack/test/activerecord/polymorphic_routes_test.rb | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/actionpack/test/activerecord/polymorphic_routes_test.rb b/actionpack/test/activerecord/polymorphic_routes_test.rb index 37f1f6dff8..ad744421db 100644 --- a/actionpack/test/activerecord/polymorphic_routes_test.rb +++ b/actionpack/test/activerecord/polymorphic_routes_test.rb @@ -98,14 +98,6 @@ class PolymorphicRoutesTest < ActionController::TestCase end end - def test_formatted_url_helper_is_deprecated - with_test_routes do - assert_deprecated do - formatted_polymorphic_url([@project, :pdf]) - end - end - end - def test_format_option with_test_routes do @project.save @@ -251,6 +243,12 @@ class PolymorphicRoutesTest < ActionController::TestCase end end + def test_with_array_containing_symbols + with_test_routes do + assert_equal "http://example.com/series/new", polymorphic_url([:new, :series]) + end + end + def test_with_hash with_test_routes do @project.save |