diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-08-21 22:30:47 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-08-21 22:30:47 +0000 |
commit | bbb6b5e84e53b17c5c08072cae05aed6de6e3abe (patch) | |
tree | 7494530ec476327a21219d980ac33384f0e16753 /test/erb | |
parent | b0837c440eef2199eb1ef58f92b18cf0b5910d01 (diff) |
* lib/cgi/util.rb (CGI.escapeHTML): use '
[ruby-core:47221] [Bug #6861]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/erb')
-rw-r--r-- | test/erb/test_erb.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/erb/test_erb.rb b/test/erb/test_erb.rb index fc1e1fcbc6..7ddbc878d4 100644 --- a/test/erb/test_erb.rb +++ b/test/erb/test_erb.rb @@ -39,8 +39,7 @@ class TestERB < Test::Unit::TestCase end def test_html_escape - # TODO: ' should be changed to ' - assert_equal(" !"\#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~", + assert_equal(" !"\#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~", ERB::Util.html_escape(" !\"\#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~")) assert_equal("", ERB::Util.html_escape("")) |