From ceba0f81516ceb35396eaa2a95e6f7132c23544f Mon Sep 17 00:00:00 2001 From: Jon Shea Date: Tue, 13 Apr 2010 14:47:03 -0400 Subject: [PATCH] 4077 test_nesting_with_array_ending_in_singleton_resource_object https://rails.lighthouseapp.com/projects/8994/tickets/4077-wrong-redirect-after-creation-of-nested-singleton-resource-using-responder --- .../test/activerecord/polymorphic_routes_test.rb | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/actionpack/test/activerecord/polymorphic_routes_test.rb b/actionpack/test/activerecord/polymorphic_routes_test.rb index 9f5e8ec..d464c41 100644 --- a/actionpack/test/activerecord/polymorphic_routes_test.rb +++ b/actionpack/test/activerecord/polymorphic_routes_test.rb @@ -198,6 +198,14 @@ class PolymorphicRoutesTest < ActionController::TestCase end end + def test_nesting_with_array_ending_in_singleton_resource_object + with_test_routes do + @project.save + @bid.save + assert_equal "http://example.com/project/#{@project.id}/bid", polymorphic_url([@project, @bid]) + end + end + def test_nesting_with_array_containing_singleton_resource with_test_routes do @project.save -- 1.7.0