diff options
author | Mario Visic <mario@mariovisic.com> | 2013-12-04 13:50:17 +1100 |
---|---|---|
committer | Mario Visic <mario@mariovisic.com> | 2013-12-05 00:21:55 +1100 |
commit | a156562762e795c2e5382570c1fc30c11cfa9a24 (patch) | |
tree | 5b809c4a7c58d50dc30ae4d8a8d2f54f53f6d8b9 /actionview/test/template | |
parent | d261c5cc28d35ae3d493c42edd20d362b61556dc (diff) | |
download | rails-a156562762e795c2e5382570c1fc30c11cfa9a24.tar.gz rails-a156562762e795c2e5382570c1fc30c11cfa9a24.tar.bz2 rails-a156562762e795c2e5382570c1fc30c11cfa9a24.zip |
Fix issue where TextHelper#simple_format was calling missing 'raw' method
Diffstat (limited to 'actionview/test/template')
-rw-r--r-- | actionview/test/template/text_helper_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/actionview/test/template/text_helper_test.rb b/actionview/test/template/text_helper_test.rb index dd1a92acfb..5b3bccf951 100644 --- a/actionview/test/template/text_helper_test.rb +++ b/actionview/test/template/text_helper_test.rb @@ -21,6 +21,11 @@ class TextHelperTest < ActionView::TestCase assert simple_format("<b> test with html tags </b>").html_safe? end + def test_simple_format_included_in_isolation + helper_klass = Class.new { include ActionView::Helpers::TextHelper } + assert helper_klass.new.simple_format("<b> test with html tags </b>").html_safe? + end + def test_simple_format assert_equal "<p></p>", simple_format(nil) |