aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/tag_helper_test.rb
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-06-06 02:20:45 -0300
committerwycats <wycats@gmail.com>2010-06-07 15:31:11 -0400
commit399b493cb454e6f6dd1a310ba31adaa8e6550830 (patch)
tree7ae944af629a069dae46e33c1b95abe6933dca0a /actionpack/test/template/tag_helper_test.rb
parenteebac026060ef9a5e69e69b01df61acee7c6c07f (diff)
downloadrails-399b493cb454e6f6dd1a310ba31adaa8e6550830.tar.gz
rails-399b493cb454e6f6dd1a310ba31adaa8e6550830.tar.bz2
rails-399b493cb454e6f6dd1a310ba31adaa8e6550830.zip
content_tag_string shouldn't escape_html if escape param is false
Diffstat (limited to 'actionpack/test/template/tag_helper_test.rb')
-rw-r--r--actionpack/test/template/tag_helper_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/test/template/tag_helper_test.rb b/actionpack/test/template/tag_helper_test.rb
index 256d9bdcde..ec5fe3d1d7 100644
--- a/actionpack/test/template/tag_helper_test.rb
+++ b/actionpack/test/template/tag_helper_test.rb
@@ -39,6 +39,8 @@ class TagHelperTest < ActionView::TestCase
content_tag("a", "Create", :href => "create")
assert_equal "<p>&lt;script&gt;evil_js&lt;/script&gt;</p>",
content_tag(:p, '<script>evil_js</script>')
+ assert_equal "<p><script>evil_js</script></p>",
+ content_tag(:p, '<script>evil_js</script>', nil, false)
end
def test_content_tag_with_block_in_erb