aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorSergey Nartimov <just.lest@gmail.com>2012-03-13 23:17:49 +0300
committerSergey Nartimov <just.lest@gmail.com>2012-03-13 23:17:49 +0300
commit9fbb1767b5b072007678b1df2bd59dce17c37dc8 (patch)
tree9f9d273447f713daaf39aa3ac9d2ecc51d0b9b05 /actionpack/test
parenta85714a673d2e06b923bd4eba443a3849d332cce (diff)
downloadrails-9fbb1767b5b072007678b1df2bd59dce17c37dc8.tar.gz
rails-9fbb1767b5b072007678b1df2bd59dce17c37dc8.tar.bz2
rails-9fbb1767b5b072007678b1df2bd59dce17c37dc8.zip
add include_hidden option to checkbox tag
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/template/form_helper_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/test/template/form_helper_test.rb b/actionpack/test/template/form_helper_test.rb
index bc42e14b8a..2bdb54bd5e 100644
--- a/actionpack/test/template/form_helper_test.rb
+++ b/actionpack/test/template/form_helper_test.rb
@@ -387,6 +387,11 @@ class FormHelperTest < ActionView::TestCase
)
end
+ def test_check_box_with_include_hidden_false
+ @post.secret = false
+ assert_dom_equal('<input id="post_secret" name="post[secret]" type="checkbox" value="1" />', check_box("post", "secret", :include_hidden => false))
+ end
+
def test_check_box_with_explicit_checked_and_unchecked_values
@post.secret = "on"
assert_dom_equal(