Skip to content
Browse files

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

…:Util.
  • Loading branch information...
1 parent 1610cd0 commit e61bc8e29f3061e7356ff9fd2b16c8d901d1b5ce @josh josh committed Oct 10, 2009
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

0 comments on commit e61bc8e

Please sign in to comment.
Something went wrong with that request. Please try again.