spec/unit/arbre/html_spec.rb in activeadmin-0.4.1 vs spec/unit/arbre/html_spec.rb in activeadmin-0.4.2
- old
+ new
@@ -213,7 +213,16 @@
span(:class => "<br />").to_s.should == <<-HTML
<span class="<br />"></span>
HTML
end
end
+
+ it "should not render blank nodes" do
+ tbody = tbody do
+ []
+ end
+ tbody.to_s.should == <<-HTML
+<tbody></tbody>
+HTML
+ end
end