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:
parent
1610cd0827
commit
e61bc8e29f
1 changed files with 1 additions and 1 deletions
|
@ -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 "<script>", @buffer
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue