Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix failing safe buffer test. We don't patch CGI.escapeHTML, only ERB…

…:Util.
  • Loading branch information...
commit e61bc8e29f3061e7356ff9fd2b16c8d901d1b5ce 1 parent 1610cd0
@josh josh authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/test/template/safe_buffer_test.rb
View
2  actionpack/test/template/safe_buffer_test.rb
@@ -26,7 +26,7 @@ def setup
end
test "Should not mess with a previously escape test" do
- @buffer << CGI.escapeHTML("<script>")
+ @buffer << ERB::Util.html_escape("<script>")
assert_equal "&lt;script&gt;", @buffer
end
Please sign in to comment.
Something went wrong with that request. Please try again.