diff options
author | José Valim <jose.valim@plataformatec.com.br> | 2012-02-01 10:10:53 -0800 |
---|---|---|
committer | José Valim <jose.valim@plataformatec.com.br> | 2012-02-01 10:10:53 -0800 |
commit | 049dc500b632ca1a05d41a0c5454946f24d15035 (patch) | |
tree | 007aa064767f9dd56e4b8855914eb94612641f44 /actionpack/test/template | |
parent | d7a85c5c51534ed627cc50d0086284006a62ac71 (diff) | |
parent | ceb1ea632e8b2837a18a44d76eb926575dbb14ac (diff) | |
download | rails-049dc500b632ca1a05d41a0c5454946f24d15035.tar.gz rails-049dc500b632ca1a05d41a0c5454946f24d15035.tar.bz2 rails-049dc500b632ca1a05d41a0c5454946f24d15035.zip |
Merge pull request #4804 from rafaelfranca/check_box-fix
check_box with nil as unchecked value should be HTML safe
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/form_helper_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/test/template/form_helper_test.rb b/actionpack/test/template/form_helper_test.rb index 8680631a48..4e440c6a13 100644 --- a/actionpack/test/template/form_helper_test.rb +++ b/actionpack/test/template/form_helper_test.rb @@ -398,6 +398,10 @@ class FormHelperTest < ActionView::TestCase ) end + def test_check_box_with_nil_unchecked_value_is_html_safe + assert check_box("post", "secret", {}, "on", nil).html_safe? + end + def test_check_box_with_multiple_behavior @post.comment_ids = [2,3] assert_dom_equal( |