From d481a935d418d6e23ebd9e3c9f95503e9dad7d2c Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Thu, 27 May 2010 00:52:24 -0300 Subject: [PATCH] Yest for content_tag's in content_tag block [#4710 state:commited] --- actionpack/test/template/tag_helper_test.rb | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/actionpack/test/template/tag_helper_test.rb b/actionpack/test/template/tag_helper_test.rb index 256d9bd..0d8175f 100644 --- a/actionpack/test/template/tag_helper_test.rb +++ b/actionpack/test/template/tag_helper_test.rb @@ -85,6 +85,15 @@ class TagHelperTest < ActionView::TestCase assert_equal "

\">limelight

", str end + def test_content_tag_for_multiple_content_tags_in_block + expected = %{
title
content
} + actual = content_tag('div', :class => 'panel') do + concat content_tag('div', 'title', :class => 'header') + concat content_tag('div', 'content', :class => 'contents') + end + assert_equal expected, actual + end + def test_cdata_section assert_equal "]]>", cdata_section("") end -- 1.7.1