From 115e80dccc65c3ed9a9750649d9ca4ea2a7e64f1 Mon Sep 17 00:00:00 2001 From: Prem Sichanugrist Date: Fri, 10 Jun 2011 18:22:42 -0400 Subject: Make sure that we don't perform in-place mutation on SafeBuffer string This will make sure `render :inline` is working. Closes #1633 --- actionpack/test/template/template_test.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'actionpack/test') diff --git a/actionpack/test/template/template_test.rb b/actionpack/test/template/template_test.rb index b0ca7de0b6..2beb168a9d 100644 --- a/actionpack/test/template/template_test.rb +++ b/actionpack/test/template/template_test.rb @@ -172,5 +172,10 @@ class TestERBTemplate < ActiveSupport::TestCase ensure silence_warnings { Encoding.default_external = old } end + + def test_render_inline_safebuffer_should_not_raise_error + @template = new_template("Hello".html_safe) + render + end end end -- cgit v1.2.3