Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit d32a7e7

Browse files
committed
Fix warning that <tr /> cannot be direct child of <table />
1 parent 3c9e5a3 commit d32a7e7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

spec/react/dsl_spec.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,15 @@ def render
109109
Foo.class_eval do
110110
include React::Component
111111
def render
112-
table { tr { "hello".td } }
112+
table {
113+
tbody {
114+
tr { "hello".td }
115+
}
116+
}
113117
end
114118
end
115119

116-
expect(Foo).to render_static_html('<table><tr><td>hello</td></tr></table>')
120+
expect(Foo).to render_static_html('<table><tbody><tr><td>hello</td></tr></tbody></table>')
117121
end
118122

119123
it "has a .para short hand String method" do

0 commit comments

Comments
 (0)