aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorPiotr Sarnacki <drogus@gmail.com>2012-03-13 10:51:46 -0700
committerPiotr Sarnacki <drogus@gmail.com>2012-03-13 10:51:46 -0700
commitcb7d19b66badfbd1846c195913419c331701074e (patch)
tree7b4ae49db122f70ab9669e4d896ad42f57685330 /actionpack/test
parentdbdbe961cd41a5fa69d6e0e92943195e2fb4d279 (diff)
parent54a75e1a0f1c2369a9a4b2872c2213d32a8bc117 (diff)
downloadrails-cb7d19b66badfbd1846c195913419c331701074e.tar.gz
rails-cb7d19b66badfbd1846c195913419c331701074e.tar.bz2
rails-cb7d19b66badfbd1846c195913419c331701074e.zip
Merge pull request #5414 from nashby/select-hidden-input
add 'include_hidden' option to select tag, closes #5402
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/template/form_options_helper_test.rb8
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(