提交 ecb26b73 编写于 作者: S Santiago Pastorino

Regression test for #18024

上级 e4627edf
...@@ -64,6 +64,11 @@ def test_content_tag_with_block_and_options_outside_out_of_erb ...@@ -64,6 +64,11 @@ def test_content_tag_with_block_and_options_outside_out_of_erb
content_tag("a", "href" => "create") { "Create" } content_tag("a", "href" => "create") { "Create" }
end 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 def test_content_tag_nested_in_content_tag_out_of_erb
assert_equal content_tag("p", content_tag("b", "Hello")), assert_equal content_tag("p", content_tag("b", "Hello")),
content_tag("p") { content_tag("b", "Hello") }, content_tag("p") { content_tag("b", "Hello") },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册