aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/form_helper_test.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2006-05-11 16:36:59 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2006-05-11 16:36:59 +0000
commitc069f361f090790b9769b349eefa260e57d4c63b (patch)
treeb5d7dd8f4dd84bdbebea10f6b2bed367b3b21f91 /actionpack/test/template/form_helper_test.rb
parent0a407bca505db3116eb9ff71022022a14300ee47 (diff)
downloadrails-c069f361f090790b9769b349eefa260e57d4c63b.tar.gz
rails-c069f361f090790b9769b349eefa260e57d4c63b.tar.bz2
rails-c069f361f090790b9769b349eefa260e57d4c63b.zip
form.text_area handles the :size option just like the original text_area (:size => '60x10' becomes cols="60" rows="10")
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4334 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/template/form_helper_test.rb')
-rw-r--r--actionpack/test/template/form_helper_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/actionpack/test/template/form_helper_test.rb b/actionpack/test/template/form_helper_test.rb
index a40a1ff662..b0ee744299 100644
--- a/actionpack/test/template/form_helper_test.rb
+++ b/actionpack/test/template/form_helper_test.rb
@@ -143,6 +143,13 @@ class FormHelperTest < Test::Unit::TestCase
)
end
+ def test_text_area_with_size_option
+ assert_dom_equal(
+ '<textarea cols="183" id="post_body" name="post[body]" rows="820">Back to the hill and over it again!</textarea>',
+ text_area("post", "body", :size => "183x820")
+ )
+ 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>',