From 001ca893c6f061796a2c3f03c864fdf06c9efbb1 Mon Sep 17 00:00:00 2001 From: Kieran Pilkington Date: Sun, 4 Apr 2010 16:31:52 +1200 Subject: Mark the result of grouped_options_for_select as HTML safe [#4322 state:committed] Signed-off-by: Xavier Noria --- actionpack/test/template/form_options_helper_test.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'actionpack/test') diff --git a/actionpack/test/template/form_options_helper_test.rb b/actionpack/test/template/form_options_helper_test.rb index 5799e3db53..98503c32fd 100644 --- a/actionpack/test/template/form_options_helper_test.rb +++ b/actionpack/test/template/form_options_helper_test.rb @@ -207,6 +207,10 @@ class FormOptionsHelperTest < ActionView::TestCase ) end + def test_grouped_options_for_select_returns_html_safe_string + assert grouped_options_for_select([["Hats", ["Baseball Cap","Cowboy Hat"]]]).html_safe? + end + def test_optgroups_with_with_options_with_hash assert_dom_equal( "\n\n", -- cgit v1.2.3