aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/template/tag_helper_test.rb
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2016-01-20 02:10:42 -0500
committerRafael França <rafaelmfranca@gmail.com>2016-01-20 02:10:42 -0500
commit6226f8f0662f66c8189f7e628dc42ca59d8f980a (patch)
treecfb209468ae10921ecdf3fbdd9a5e437903e9a17 /actionview/test/template/tag_helper_test.rb
parent715cbd3fdcade7c4fdae944c4a448252317faff9 (diff)
parentb387d9a14aeecc372f49544d927b2f24d5a39d49 (diff)
downloadrails-6226f8f0662f66c8189f7e628dc42ca59d8f980a.tar.gz
rails-6226f8f0662f66c8189f7e628dc42ca59d8f980a.tar.bz2
rails-6226f8f0662f66c8189f7e628dc42ca59d8f980a.zip
Merge pull request #23130 from vipulnsward/html_safe_to_raw
Changed html_safe to raw in AV
Diffstat (limited to 'actionview/test/template/tag_helper_test.rb')
-rw-r--r--actionview/test/template/tag_helper_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/test/template/tag_helper_test.rb b/actionview/test/template/tag_helper_test.rb
index d037447567..6f7a78ccef 100644
--- a/actionview/test/template/tag_helper_test.rb
+++ b/actionview/test/template/tag_helper_test.rb
@@ -143,10 +143,10 @@ class TagHelperTest < ActionView::TestCase
end
def test_tag_honors_html_safe_with_escaped_array_class
- str = tag('p', :class => ['song>', 'play>'.html_safe])
+ str = tag('p', :class => ['song>', raw('play>')])
assert_equal '<p class="song&gt; play>" />', str
- str = tag('p', :class => ['song>'.html_safe, 'play>'])
+ str = tag('p', :class => [raw('song>'), 'play>'])
assert_equal '<p class="song> play&gt;" />', str
end