diff options
author | Sergey Kojin <sergey.kojin@gmail.com> | 2012-11-27 20:00:31 +0400 |
---|---|---|
committer | Sergey Kojin <sergey.kojin@gmail.com> | 2012-11-27 20:04:37 +0400 |
commit | 0195d6138b7e441283cbbded31ff4e94bcf61901 (patch) | |
tree | a2dbd7bcd3a4f3d879cc52da89b9d5b58ea0a4c5 /actionpack/test/template | |
parent | 0be0a978ef920384685537120da82d7ad60add1e (diff) | |
download | rails-0195d6138b7e441283cbbded31ff4e94bcf61901.tar.gz rails-0195d6138b7e441283cbbded31ff4e94bcf61901.tar.bz2 rails-0195d6138b7e441283cbbded31ff4e94bcf61901.zip |
No sort Hash options in #grouped_options_for_select
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/form_options_helper_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/template/form_options_helper_test.rb b/actionpack/test/template/form_options_helper_test.rb index 54ab8b4d3a..c5efed3195 100644 --- a/actionpack/test/template/form_options_helper_test.rb +++ b/actionpack/test/template/form_options_helper_test.rb @@ -346,7 +346,7 @@ class FormOptionsHelperTest < ActionView::TestCase def test_optgroups_with_with_options_with_hash assert_dom_equal( - "<optgroup label=\"Europe\"><option value=\"Denmark\">Denmark</option>\n<option value=\"Germany\">Germany</option></optgroup><optgroup label=\"North America\"><option value=\"United States\">United States</option>\n<option value=\"Canada\">Canada</option></optgroup>", + "<optgroup label=\"North America\"><option value=\"United States\">United States</option>\n<option value=\"Canada\">Canada</option></optgroup><optgroup label=\"Europe\"><option value=\"Denmark\">Denmark</option>\n<option value=\"Germany\">Germany</option></optgroup>", grouped_options_for_select({'North America' => ['United States','Canada'], 'Europe' => ['Denmark','Germany']}) ) end |