aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorRafael Mendonça França <rafael.franca@plataformatec.com.br>2012-01-04 12:38:58 -0300
committerRafael Mendonça França <rafael.franca@plataformatec.com.br>2012-01-04 12:38:58 -0300
commit8752223fe6cef29db649c6478e5a77d2b0533223 (patch)
treefaf78cbf506520983083ae67d0a093d46f0e9e9d /actionpack
parent73a0f9df475159bf7f5f4df60d5b8f2694407d8b (diff)
downloadrails-8752223fe6cef29db649c6478e5a77d2b0533223.tar.gz
rails-8752223fe6cef29db649c6478e5a77d2b0533223.tar.bz2
rails-8752223fe6cef29db649c6478e5a77d2b0533223.zip
Make sure that check_box helper return a safe buffer
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/test/template/form_helper_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/test/template/form_helper_test.rb b/actionpack/test/template/form_helper_test.rb
index 73b936b16e..6fe4ce65cf 100644
--- a/actionpack/test/template/form_helper_test.rb
+++ b/actionpack/test/template/form_helper_test.rb
@@ -330,6 +330,7 @@ class FormHelperTest < ActionView::TestCase
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")