diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2010-06-19 22:35:54 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-06-20 00:15:41 +0200 |
commit | ed3f042e99949526f483d1f567e40031deea33d3 (patch) | |
tree | c8c4332b2d93be2a39202bf49a556586bc354cd0 /railties/lib/rails/generators/test_unit/scaffold/templates | |
parent | 65ce3d12971afd15de6ea22a2fc5af3ba1faf124 (diff) | |
download | rails-ed3f042e99949526f483d1f567e40031deea33d3.tar.gz rails-ed3f042e99949526f483d1f567e40031deea33d3.tar.bz2 rails-ed3f042e99949526f483d1f567e40031deea33d3.zip |
Make polymorphic_url and scaffolding work with uncountable resources [#3930 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'railties/lib/rails/generators/test_unit/scaffold/templates')
-rw-r--r-- | railties/lib/rails/generators/test_unit/scaffold/templates/functional_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/test_unit/scaffold/templates/functional_test.rb b/railties/lib/rails/generators/test_unit/scaffold/templates/functional_test.rb index 4f8ddbffcf..d5d3d6d5cd 100644 --- a/railties/lib/rails/generators/test_unit/scaffold/templates/functional_test.rb +++ b/railties/lib/rails/generators/test_unit/scaffold/templates/functional_test.rb @@ -46,6 +46,6 @@ class <%= controller_class_name %>ControllerTest < ActionController::TestCase delete :destroy, :id => @<%= file_name %>.to_param end - assert_redirected_to <%= table_name %>_path + assert_redirected_to <%= index_helper %>_path end end |