Permalink
Browse files

Use a non-XSS-protected output buffer for view tests

  • Loading branch information...
1 parent ca5f5d9 commit ab2d7c8b5d424da7b6d1e1d401e2a0a89d28753c @jeremy jeremy committed May 23, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/test_case.rb
@@ -53,7 +53,7 @@ def initialize
setup :setup_with_controller
def setup_with_controller
@controller = TestController.new
- @output_buffer = ActiveSupport::SafeBuffer.new
+ @output_buffer = ''.html_safe
@rendered = ''
self.class.send(:include_helper_modules!)

0 comments on commit ab2d7c8

Please sign in to comment.