aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2007-03-03 18:04:44 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2007-03-03 18:04:44 +0000
commit1dc56ba4815a5d87df34ade0125512a6101d3b87 (patch)
treecd9d441009eadf85fb518fdb8cedb8520ba467b1 /actionpack/test
parentb2c0359b3e63f472a1ff8bf02061c97dafb98a34 (diff)
downloadrails-1dc56ba4815a5d87df34ade0125512a6101d3b87.tar.gz
rails-1dc56ba4815a5d87df34ade0125512a6101d3b87.tar.bz2
rails-1dc56ba4815a5d87df34ade0125512a6101d3b87.zip
Fixed that FormTagHelper#text_area_tag should disregard :size option if it's not a string [Brendon Davidson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6300 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/template/form_tag_helper_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/test/template/form_tag_helper_test.rb b/actionpack/test/template/form_tag_helper_test.rb
index 283a86902f..b7db62993a 100644
--- a/actionpack/test/template/form_tag_helper_test.rb
+++ b/actionpack/test/template/form_tag_helper_test.rb
@@ -105,6 +105,12 @@ class FormTagHelperTest < Test::Unit::TestCase
assert_dom_equal expected, actual
end
+ def test_text_area_tag_should_disregard_size_if_its_given_as_an_integer
+ actual = text_area_tag "body", "hello world", :size => 20
+ expected = %(<textarea id="body" name="body">hello world</textarea>)
+ assert_dom_equal expected, actual
+ end
+
def test_text_field_tag
actual = text_field_tag "title", "Hello!"
expected = %(<input id="title" name="title" type="text" value="Hello!" />)