aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/template/tag_helper_test.rb
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2014-12-15 21:34:15 -0200
committerSantiago Pastorino <santiago@wyeworks.com>2014-12-15 21:34:15 -0200
commitecb26b736e90b29212e8b5aabe60ce501c48be19 (patch)
tree109712277cf5173f2224502338e4df6e14b0bfa1 /actionview/test/template/tag_helper_test.rb
parente4627edf87a1f0cb575287f200df3f67335dd84c (diff)
downloadrails-ecb26b736e90b29212e8b5aabe60ce501c48be19.tar.gz
rails-ecb26b736e90b29212e8b5aabe60ce501c48be19.tar.bz2
rails-ecb26b736e90b29212e8b5aabe60ce501c48be19.zip
Regression test for #18024
Diffstat (limited to 'actionview/test/template/tag_helper_test.rb')
-rw-r--r--actionview/test/template/tag_helper_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/actionview/test/template/tag_helper_test.rb b/actionview/test/template/tag_helper_test.rb
index ce89d5728e..7fc798dec9 100644
--- a/actionview/test/template/tag_helper_test.rb
+++ b/actionview/test/template/tag_helper_test.rb
@@ -64,6 +64,11 @@ class TagHelperTest < ActionView::TestCase
content_tag("a", "href" => "create") { "Create" }
end
+ def test_content_tag_with_block_and_non_string_outside_out_of_erb
+ assert_equal content_tag("p"),
+ content_tag("p") { 3.times { "do_something" } }
+ end
+
def test_content_tag_nested_in_content_tag_out_of_erb
assert_equal content_tag("p", content_tag("b", "Hello")),
content_tag("p") { content_tag("b", "Hello") },