Permalink
Browse files

Make sure that check_box helper return a safe buffer

  • Loading branch information...
1 parent 73a0f9d commit 8752223fe6cef29db649c6478e5a77d2b0533223 Rafael Mendonça França committed Jan 4, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 actionpack/test/template/form_helper_test.rb
@@ -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")

0 comments on commit 8752223

Please sign in to comment.