mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Fix nil reference error when example name is unavailable
This commit is contained in:
parent
29594eefab
commit
5dfc60d4cd
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ module Spectator::Formatting
|
|||
# Produces a single character output based on a result.
|
||||
def end_example(result)
|
||||
@previous_hierarchy.size.times { @io.print INDENT }
|
||||
@io.puts result.accept(Color) { result.example.name }
|
||||
@io.puts result.accept(Color) { result.example }
|
||||
end
|
||||
|
||||
# Produces a list of groups making up the hierarchy for an example.
|
||||
|
|
Loading…
Reference in a new issue