Make sure that check_box helper return a safe buffer

This commit is contained in:
Rafael Mendonça França 2012-01-04 12:38:58 -03:00
parent 73a0f9df47
commit 8752223fe6

@ -330,6 +330,7 @@ def test_text_field_with_custom_type
end
def test_check_box
assert check_box("post", "secret").html_safe?
assert_dom_equal(
'<input name="post[secret]" type="hidden" value="0" /><input checked="checked" id="post_secret" name="post[secret]" type="checkbox" value="1" />',
check_box("post", "secret")