diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-10-10 20:29:31 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-10-10 21:30:51 -0500 |
commit | e61bc8e29f3061e7356ff9fd2b16c8d901d1b5ce (patch) | |
tree | 86ece7daa5c001bd55a3bf46dd2e98002e7a6367 /actionpack/test/template | |
parent | 1610cd0827129c28518ee6586d8ecf922576bf20 (diff) | |
download | rails-e61bc8e29f3061e7356ff9fd2b16c8d901d1b5ce.tar.gz rails-e61bc8e29f3061e7356ff9fd2b16c8d901d1b5ce.tar.bz2 rails-e61bc8e29f3061e7356ff9fd2b16c8d901d1b5ce.zip |
Fix failing safe buffer test. We don't patch CGI.escapeHTML, only ERB:Util.
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/safe_buffer_test.rb | 2 |
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 "<script>", @buffer end |