diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2010-05-24 20:13:07 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-05-24 20:18:25 -0700 |
commit | d8d38bedfd5716d55e50e85dc6c9a938b1848e66 (patch) | |
tree | 59c4fc984eddb4dc809f5a4f0e1d97f431391b33 /actionpack/test | |
parent | b5f9c8822dce55b33a4a6ab929f5b86b055a0284 (diff) | |
download | rails-d8d38bedfd5716d55e50e85dc6c9a938b1848e66.tar.gz rails-d8d38bedfd5716d55e50e85dc6c9a938b1848e66.tar.bz2 rails-d8d38bedfd5716d55e50e85dc6c9a938b1848e66.zip |
HTML safety: fix textarea with nil content
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/template/form_tag_helper_test.rb | 6 |
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 1c095b621e..b75863bb6a 100644 --- a/actionpack/test/template/form_tag_helper_test.rb +++ b/actionpack/test/template/form_tag_helper_test.rb @@ -206,6 +206,12 @@ class FormTagHelperTest < ActionView::TestCase assert_dom_equal expected, actual end + def test_text_area_tag_unescaped_nil_content + actual = text_area_tag "body", nil, :escape => false + expected = %(<textarea id="body" name="body"></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!" />) |