Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix test rendering unmarked but safe HTML

  • Loading branch information...
commit ca5f5d97b9b4e24502583c2aa15b35142797e9f3 1 parent e3f14d1
@jeremy jeremy authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/test/view/test_case_test.rb
View
4 actionpack/test/view/test_case_test.rb
@@ -159,7 +159,7 @@ def from_test_case; 'Word!'; end
class AssertionsTest < ActionView::TestCase
def render_from_helper
form_tag('/foo') do
- concat render(:text => '<ul><li>foo</li></ul>')
+ concat render(:text => '<ul><li>foo</li></ul>'.html_safe)
end
end
helper_method :render_from_helper
@@ -173,4 +173,4 @@ def render_from_helper
end
end
end
-end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.