mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Ignore nameless groups in document hierarchy
This commit is contained in:
parent
e44505d4c1
commit
292dfcbe29
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue