mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Making time_zone_options_for_select return a html_safe string
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
This commit is contained in:
committed by
Santiago Pastorino
parent
1607a8b08c
commit
fd9f3ad36b
@@ -493,7 +493,7 @@ module ActionView
|
||||
end
|
||||
|
||||
zone_options += options_for_select(convert_zones[zones], selected)
|
||||
zone_options
|
||||
zone_options.html_safe
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
@@ -289,6 +289,10 @@ class FormOptionsHelperTest < ActionView::TestCase
|
||||
opts
|
||||
end
|
||||
|
||||
def test_time_zone_options_returns_html_safe_string
|
||||
assert time_zone_options_for_select.html_safe?
|
||||
end
|
||||
|
||||
def test_select
|
||||
@post = Post.new
|
||||
@post.category = "<mus>"
|
||||
|
||||
Reference in New Issue
Block a user