Ignore nameless groups in document hierarchy

This commit is contained in:
Michael Miller 2021-01-30 21:00:28 -07:00
parent e44505d4c1
commit 292dfcbe29
No known key found for this signature in database
GPG key ID: FB9F12F7C646A4AD

View file

@ -37,7 +37,7 @@ module Spectator::Formatting
hierarchy = [] of ExampleGroup hierarchy = [] of ExampleGroup
group = example.group group = example.group
while group.is_a?(ExampleGroup) while group.is_a?(ExampleGroup)
hierarchy << group hierarchy << group if group.name?
group = group.group? group = group.group?
end end
hierarchy.reverse hierarchy.reverse