Make sure that check_box helper return a safe buffer
This commit is contained in:
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")
|
||||
|
Loading…
Reference in New Issue
Block a user