diff options
author | Prem Sichanugrist <s@sikachu.com> | 2011-06-10 18:22:42 -0400 |
---|---|---|
committer | Prem Sichanugrist <s@sikachu.com> | 2011-06-10 18:51:48 -0400 |
commit | 115e80dccc65c3ed9a9750649d9ca4ea2a7e64f1 (patch) | |
tree | ed8e49d65afd73d5dd338cb62efbb9dedf70c9bc /actionpack/test/template | |
parent | 37577988561e97e7ea154a7f90bfd8fe3db9426d (diff) | |
download | rails-115e80dccc65c3ed9a9750649d9ca4ea2a7e64f1.tar.gz rails-115e80dccc65c3ed9a9750649d9ca4ea2a7e64f1.tar.bz2 rails-115e80dccc65c3ed9a9750649d9ca4ea2a7e64f1.zip |
Make sure that we don't perform in-place mutation on SafeBuffer string
This will make sure `render :inline` is working.
Closes #1633
Diffstat (limited to 'actionpack/test/template')
-rw-r--r-- | actionpack/test/template/template_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
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 |