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:
parent
e89ef3cee9
commit
afc928445d
1 changed files with 7 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue