diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-07-19 17:25:50 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-07-19 17:25:50 -0300 |
commit | 0533893df59a11e5c80a9a64d6db018aa46b3459 (patch) | |
tree | 97de622c52345b52fde5a5764a48bcdb31d1c75e /actionview | |
parent | e89ef3cee9a38f69634e8e7d55dc69841b06e55d (diff) | |
parent | afc928445dbf22bbcb4cc97e67638cbc71ce0c9b (diff) | |
download | rails-0533893df59a11e5c80a9a64d6db018aa46b3459.tar.gz rails-0533893df59a11e5c80a9a64d6db018aa46b3459.tar.bz2 rails-0533893df59a11e5c80a9a64d6db018aa46b3459.zip |
Merge pull request #16230 from egilburg/before_type_cast_coverage
Missing test for form values before type cast
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/test/template/form_helper_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/actionview/test/template/form_helper_test.rb b/actionview/test/template/form_helper_test.rb index 3e39dadcf1..a9f137aec6 100644 --- a/actionview/test/template/form_helper_test.rb +++ b/actionview/test/template/form_helper_test.rb @@ -694,6 +694,13 @@ class FormHelperTest < ActionView::TestCase ) end + def test_text_area_with_value_before_type_cast + assert_dom_equal( + %{<textarea id="post_id" name="post[id]">\n123</textarea>}, + text_area("post", "id") + ) + end + def test_text_area_with_html_entities @post.body = "The HTML Entity for & is &" assert_dom_equal( |