1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

adding missing test for text area value before type cast

This commit is contained in:
Eugene Gilburg 2014-07-18 21:34:23 -07:00
parent e89ef3cee9
commit afc928445d

View file

@ -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(