From b387d9a14aeecc372f49544d927b2f24d5a39d49 Mon Sep 17 00:00:00 2001 From: Vipul A M Date: Wed, 20 Jan 2016 12:25:06 +0530 Subject: html_safe is not supposed to be public API for AV. This change removes usage of html_safe in favour of raw() in AV helpers. Also changed usage of html_safe to make use of raw() instead so that the intended behaviour is verified with raw() --- actionview/test/template/form_helper_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionview/test/template/form_helper_test.rb') diff --git a/actionview/test/template/form_helper_test.rb b/actionview/test/template/form_helper_test.rb index 1be1c68c14..034b8a4bf6 100644 --- a/actionview/test/template/form_helper_test.rb +++ b/actionview/test/template/form_helper_test.rb @@ -336,7 +336,7 @@ class FormHelperTest < ActionView::TestCase def test_label_with_block_and_html assert_dom_equal( '', - label(:post, :terms) { 'Accept Terms.'.html_safe } + label(:post, :terms) { raw('Accept Terms.') } ) end @@ -351,7 +351,7 @@ class FormHelperTest < ActionView::TestCase with_locale :label do assert_dom_equal( '', - label(:post, :body) { |b| "#{b.translation}".html_safe } + label(:post, :body) { |b| raw("#{b.translation}") } ) end end -- cgit v1.2.3