@@ -20,7 +20,7 @@ def test_render_inline_allocations
2020 MyComponent . __vc_ensure_compiled
2121
2222 with_instrumentation_enabled_option ( false ) do
23- assert_allocations ( { "3.5" => 67 , "3.4" => 72 ..74 , "3.3" => 72 , "3.2" => 75 .. 76 } ) do
23+ assert_allocations ( { "3.5" => 67 , "3.4" => 72 ..74 , "3.3" => 75 , "3.2" => 78 .. 79 } ) do
2424 render_inline ( MyComponent . new )
2525 end
2626 end
@@ -34,7 +34,7 @@ def test_render_collection_inline_allocations
3434 ViewComponent ::CompileCache . cache . delete ( ProductComponent )
3535 ProductComponent . __vc_ensure_compiled
3636
37- allocations = { "3.5" => 66 , "3.4" => 70 ..82 , "3.3" => 86 , "3.2" => 89 .. 90 }
37+ allocations = { "3.5" => 66 , "3.4" => 70 ..82 , "3.3" => 89 , "3.2" => 92 .. 93 }
3838
3939 products = [ Product . new ( name : "Radio clock" ) , Product . new ( name : "Mints" ) ]
4040 notice = "On sale"
@@ -77,6 +77,10 @@ def test_render_inline_returns_nokogiri_fragment
7777 assert_includes render_inline ( MyComponent . new ) . css ( "div" ) . to_html , "hello,world!"
7878 end
7979
80+ def test_render_inline_handles_table_contents
81+ assert_includes render_inline ( TableContentsComponent . new ) . css ( "td" ) . to_html , "<td>td contents</td>"
82+ end
83+
8084 def test_render_inline_sets_rendered_content
8185 render_inline ( MyComponent . new )
8286
0 commit comments