diff options
author | Vasiliy Ermolovich <younash@gmail.com> | 2012-03-13 19:59:04 +0300 |
---|---|---|
committer | Vasiliy Ermolovich <younash@gmail.com> | 2012-03-13 20:00:50 +0300 |
commit | 54a75e1a0f1c2369a9a4b2872c2213d32a8bc117 (patch) | |
tree | 24857b38b2a5f57347822b655e2ffdb26a6cacdf /actionpack/test/template/form_options_helper_test.rb | |
parent | 21b69b233bda5870274c84ef8178c9ad9a47c390 (diff) | |
download | rails-54a75e1a0f1c2369a9a4b2872c2213d32a8bc117.tar.gz rails-54a75e1a0f1c2369a9a4b2872c2213d32a8bc117.tar.bz2 rails-54a75e1a0f1c2369a9a4b2872c2213d32a8bc117.zip |
add 'include_hidden' option to select tag, closes #5402
Diffstat (limited to 'actionpack/test/template/form_options_helper_test.rb')
-rw-r--r-- | actionpack/test/template/form_options_helper_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/actionpack/test/template/form_options_helper_test.rb b/actionpack/test/template/form_options_helper_test.rb index 606d454cb3..2c0da8473a 100644 --- a/actionpack/test/template/form_options_helper_test.rb +++ b/actionpack/test/template/form_options_helper_test.rb @@ -529,6 +529,14 @@ class FormOptionsHelperTest < ActionView::TestCase ) end + def test_select_with_multiple_and_without_hidden_input + output_buffer = select(:post, :category, "", {:include_hidden => false}, :multiple => true) + assert_dom_equal( + "<select multiple=\"multiple\" id=\"post_category\" name=\"post[category][]\"></select>", + output_buffer + ) + end + def test_select_with_multiple_and_disabled_to_add_disabled_hidden_input output_buffer = select(:post, :category, "", {}, :multiple => true, :disabled => true) assert_dom_equal( |