Skip to content

Commit

Permalink
Fix failing safe buffer test. We don't patch CGI.escapeHTML, only ERB…
Browse files Browse the repository at this point in the history
…:Util.
  • Loading branch information
josh committed Oct 11, 2009
1 parent 1610cd0 commit e61bc8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/test/template/safe_buffer_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e61bc8e

Please sign in to comment.