diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-05-09 05:19:32 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-05-09 05:19:32 +0000 |
commit | 5a960d2568b5c2f69c31379045a224489a5ac3d1 (patch) | |
tree | 26150af984d5284fd4f3822defca8e1290e5bc20 /actionpack/test/template | |
parent | d249ff579a1a4bcdf0bc1491771934b7478f5778 (diff) | |
download | rails-5a960d2568b5c2f69c31379045a224489a5ac3d1.tar.gz rails-5a960d2568b5c2f69c31379045a224489a5ac3d1.tar.bz2 rails-5a960d2568b5c2f69c31379045a224489a5ac3d1.zip |
Excise ingrown code from FormOptionsHelper#options_for_select. Closes #5008.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4331 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/form_options_helper_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/test/template/form_options_helper_test.rb b/actionpack/test/template/form_options_helper_test.rb index f468b69c7e..ad293417f5 100644 --- a/actionpack/test/template/form_options_helper_test.rb +++ b/actionpack/test/template/form_options_helper_test.rb @@ -103,6 +103,10 @@ class FormOptionsHelperTest < Test::Unit::TestCase "<option value=\"ruby\" selected=\"selected\">ruby</option>\n<option value=\"rubyonrails\">rubyonrails</option>", options_for_select([ "ruby", "rubyonrails" ], "ruby") ) + assert_dom_equal( + %(<option value="ruby" selected="selected">ruby</option>\n<option value="rubyonrails">rubyonrails</option>\n<option value=""></option>), + options_for_select([ "ruby", "rubyonrails", nil ], "ruby") + ) end def test_hash_options_for_select |