aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test
diff options
context:
space:
mode:
authorEugene Gilburg <eugene.gilburg@gmail.com>2014-07-18 21:34:23 -0700
committerEugene Gilburg <eugene.gilburg@gmail.com>2014-07-19 12:06:36 -0700
commitafc928445dbf22bbcb4cc97e67638cbc71ce0c9b (patch)
tree97de622c52345b52fde5a5764a48bcdb31d1c75e /actionview/test
parente89ef3cee9a38f69634e8e7d55dc69841b06e55d (diff)
downloadrails-afc928445dbf22bbcb4cc97e67638cbc71ce0c9b.tar.gz
rails-afc928445dbf22bbcb4cc97e67638cbc71ce0c9b.tar.bz2
rails-afc928445dbf22bbcb4cc97e67638cbc71ce0c9b.zip
adding missing test for text area value before type cast
Diffstat (limited to 'actionview/test')
-rw-r--r--actionview/test/template/form_helper_test.rb7
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 &amp;"
assert_dom_equal(