aboutsummaryrefslogtreecommitdiffstats
path: root/test/cgi/test_cgi_util.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/cgi/test_cgi_util.rb')
-rw-r--r--test/cgi/test_cgi_util.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/test/cgi/test_cgi_util.rb b/test/cgi/test_cgi_util.rb
index fa1c1e5959..b7bb7b8eae 100644
--- a/test/cgi/test_cgi_util.rb
+++ b/test/cgi/test_cgi_util.rb
@@ -99,13 +99,6 @@ class CGIUtilTest < Test::Unit::TestCase
end
end
- def test_cgi_escape_html_preserve_tainted
- assert_not_predicate CGI.escapeHTML("'&\"><"), :tainted?
- assert_predicate CGI.escapeHTML("'&\"><".dup.taint), :tainted?
- assert_not_predicate CGI.escapeHTML("Ruby"), :tainted?
- assert_predicate CGI.escapeHTML("Ruby".dup.taint), :tainted?
- end
-
def test_cgi_escape_html_dont_freeze
assert_not_predicate CGI.escapeHTML("'&\"><".dup), :frozen?
assert_not_predicate CGI.escapeHTML("'&\"><".freeze), :frozen?