提交 afc92844 编写于 作者: E Eugene Gilburg

adding missing test for text area value before type cast

上级 e89ef3ce
...@@ -694,6 +694,13 @@ def test_text_area_with_nil_alternate_value ...@@ -694,6 +694,13 @@ def test_text_area_with_nil_alternate_value
) )
end 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 def test_text_area_with_html_entities
@post.body = "The HTML Entity for & is &amp;" @post.body = "The HTML Entity for & is &amp;"
assert_dom_equal( assert_dom_equal(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册