diff options
author | Vipul A M <vipulnsward@gmail.com> | 2016-01-20 12:25:06 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2016-01-20 12:38:59 +0530 |
commit | b387d9a14aeecc372f49544d927b2f24d5a39d49 (patch) | |
tree | a33ea10a967587a3d598c348a89acfb099255d1f /actionview/test/template/date_helper_test.rb | |
parent | 56a9341689942146d350ff931497956a15152bdb (diff) | |
download | rails-b387d9a14aeecc372f49544d927b2f24d5a39d49.tar.gz rails-b387d9a14aeecc372f49544d927b2f24d5a39d49.tar.bz2 rails-b387d9a14aeecc372f49544d927b2f24d5a39d49.zip |
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()
Diffstat (limited to 'actionview/test/template/date_helper_test.rb')
-rw-r--r-- | actionview/test/template/date_helper_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/test/template/date_helper_test.rb b/actionview/test/template/date_helper_test.rb index 92e77599f4..4678998bdc 100644 --- a/actionview/test/template/date_helper_test.rb +++ b/actionview/test/template/date_helper_test.rb @@ -3207,7 +3207,7 @@ class DateHelperTest < ActionView::TestCase end def test_time_tag_with_given_block - assert_match(/<time.*><span>Right now<\/span><\/time>/, time_tag(Time.now){ '<span>Right now</span>'.html_safe }) + assert_match(/<time.*><span>Right now<\/span><\/time>/, time_tag(Time.now){ raw('<span>Right now</span>') }) end def test_time_tag_with_different_format |