diff options
author | Bogdan Gusiev <agresso@gmail.com> | 2011-06-30 16:27:01 +0300 |
---|---|---|
committer | Bogdan Gusiev <agresso@gmail.com> | 2011-06-30 16:27:01 +0300 |
commit | 0fdac01876c37c692e9107b6120e03aec692663d (patch) | |
tree | 15f59afe22b24e9b4eed597721bd5aa10773b3b6 /actionpack/test/template/form_options_helper_test.rb | |
parent | 539752a54cf3426c98e65136206df9f9553d9e73 (diff) | |
download | rails-0fdac01876c37c692e9107b6120e03aec692663d.tar.gz rails-0fdac01876c37c692e9107b6120e03aec692663d.tar.bz2 rails-0fdac01876c37c692e9107b6120e03aec692663d.zip |
Fixed ActionView::FormOptionsHelper#select with :multiple => false
Diffstat (limited to 'actionpack/test/template/form_options_helper_test.rb')
-rw-r--r-- | actionpack/test/template/form_options_helper_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/actionpack/test/template/form_options_helper_test.rb b/actionpack/test/template/form_options_helper_test.rb index f3969895ae..a4599a3f00 100644 --- a/actionpack/test/template/form_options_helper_test.rb +++ b/actionpack/test/template/form_options_helper_test.rb @@ -378,6 +378,13 @@ class FormOptionsHelperTest < ActionView::TestCase ) end + def test_select_without_multiple + assert_dom_equal( + "<select id=\"post_category\" name=\"post[category]\"></select>", + select(:post, :category, "", {}, :multiple => false) + ) + end + def test_select_with_boolean_method @post = Post.new @post.allow_comments = false |