diff options
author | Marcel Molina <marcel@vernix.org> | 2006-02-08 05:13:21 +0000 |
---|---|---|
committer | Marcel Molina <marcel@vernix.org> | 2006-02-08 05:13:21 +0000 |
commit | ba2619f53911d5b56b76ab45af882caa7334e3cf (patch) | |
tree | b4591f9890b31c3fe7e411e87ac9310a0ee22538 /actionpack/test/template | |
parent | a447e82de4049e79dc1002257a1c6d6a660685d6 (diff) | |
download | rails-ba2619f53911d5b56b76ab45af882caa7334e3cf.tar.gz rails-ba2619f53911d5b56b76ab45af882caa7334e3cf.tar.bz2 rails-ba2619f53911d5b56b76ab45af882caa7334e3cf.zip |
Don't interpret the :value option on text_area as an html attribute. Set the text_area's value. Closes #3752.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3550 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/form_helper_test.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/actionpack/test/template/form_helper_test.rb b/actionpack/test/template/form_helper_test.rb index a922584370..83d50aae7a 100644 --- a/actionpack/test/template/form_helper_test.rb +++ b/actionpack/test/template/form_helper_test.rb @@ -126,7 +126,14 @@ class FormHelperTest < Test::Unit::TestCase text_area("post", "body") ) end - + + def test_text_area_with_alternate_value + assert_dom_equal( + '<textarea cols="40" id="post_body" name="post[body]" rows="20">Testing alternate values.</textarea>', + text_area("post", "body", :value => 'Testing alternate values.') + ) + end + def test_date_selects assert_dom_equal( '<textarea cols="40" id="post_body" name="post[body]" rows="20">Back to the hill and over it again!</textarea>', |