1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

This commit is contained in:
Joshua Peek 2009-10-10 20:29:31 -05:00
parent 1610cd0827
commit e61bc8e29f

View file

@ -26,7 +26,7 @@ class SafeBufferTest < ActionView::TestCase
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