mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Change NestedExampleGroup to ExampleGroup
This commit is contained in:
parent
225c358cb8
commit
3133717323
1 changed files with 3 additions and 3 deletions
|
@ -11,7 +11,7 @@ module Spectator::Formatting
|
|||
|
||||
private INDENT = " "
|
||||
|
||||
@previous_hierarchy = [] of NestedExampleGroup
|
||||
@previous_hierarchy = [] of ExampleGroup
|
||||
|
||||
# Creates the formatter.
|
||||
# By default, output is sent to STDOUT.
|
||||
|
@ -34,9 +34,9 @@ module Spectator::Formatting
|
|||
|
||||
# Produces a list of groups making up the hierarchy for an example.
|
||||
private def group_hierarchy(example)
|
||||
hierarchy = [] of NestedExampleGroup
|
||||
hierarchy = [] of ExampleGroup
|
||||
group = example.group
|
||||
while group.is_a?(NestedExampleGroup)
|
||||
while group.is_a?(ExampleGroup)
|
||||
hierarchy << group
|
||||
group = group.parent
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue