diff options
author | Rick Olson <technoweenie@gmail.com> | 2007-10-26 04:48:19 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2007-10-26 04:48:19 +0000 |
commit | d5a93b6241b4df64f9656853d386eca96b6f6baf (patch) | |
tree | 4995d5453417b30762b3ed52db6780e37c030164 /actionpack/test/template | |
parent | d761ac409586f887570cba88cf8d74f2c783223b (diff) | |
download | rails-d5a93b6241b4df64f9656853d386eca96b6f6baf.tar.gz rails-d5a93b6241b4df64f9656853d386eca96b6f6baf.tar.bz2 rails-d5a93b6241b4df64f9656853d386eca96b6f6baf.zip |
FormHelper's auto_index should use #to_param instead of #id_before_type_cast. Closes #9994 [mattly]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8033 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/form_helper_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/test/template/form_helper_test.rb b/actionpack/test/template/form_helper_test.rb index d00bd16ad8..f37469954a 100644 --- a/actionpack/test/template/form_helper_test.rb +++ b/actionpack/test/template/form_helper_test.rb @@ -6,7 +6,7 @@ silence_warnings do alias_method :title_before_type_cast, :title unless respond_to?(:title_before_type_cast) alias_method :body_before_type_cast, :body unless respond_to?(:body_before_type_cast) alias_method :author_name_before_type_cast, :author_name unless respond_to?(:author_name_before_type_cast) - + def new_record=(boolean) @new_record = boolean end @@ -53,6 +53,7 @@ class FormHelperTest < Test::Unit::TestCase end def @post.id; 123; end def @post.id_before_type_cast; 123; end + def @post.to_param; '123'; end @post.title = "Hello World" @post.author_name = "" |