Sha256: 05a1ffa4fbc6cc52088c9371980beee7a0ec1f0b513e9ad52c0b5b1d68117c8d
Contents?: true
Size: 407 Bytes
Versions: 12
Compression:
Stored size: 407 Bytes
Contents
require File.dirname(__FILE__) + '/../unit_test_helper' class HtmlEscapeTest < Test::Unit::TestCase def test_trasform result = auto_html("<script>alert(0)</script>") { html_escape } assert_equal "<script>alert(0)</script>", result end def test_trasform2 result = auto_html("<div>test</div>") { html_escape } assert_equal "<div>test</div>", result end end
Version data entries
12 entries across 12 versions & 3 rubygems