aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/safe_buffer_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/template/safe_buffer_test.rb')
-rw-r--r--actionpack/test/template/safe_buffer_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/template/safe_buffer_test.rb b/actionpack/test/template/safe_buffer_test.rb
index 2236709627..6a18201d16 100644
--- a/actionpack/test/template/safe_buffer_test.rb
+++ b/actionpack/test/template/safe_buffer_test.rb
@@ -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