mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Fix missing example location in output
This commit is contained in:
parent
6c6dff363b
commit
e316dd8a11
1 changed files with 1 additions and 2 deletions
|
@ -73,9 +73,8 @@ module Spectator::Formatting::Components
|
||||||
private def location_line(io)
|
private def location_line(io)
|
||||||
location = if (result = @example.result).responds_to?(:location)
|
location = if (result = @example.result).responds_to?(:location)
|
||||||
result.location
|
result.location
|
||||||
else
|
|
||||||
@example.location?
|
|
||||||
end
|
end
|
||||||
|
location ||= @example.location?
|
||||||
return unless location
|
return unless location
|
||||||
|
|
||||||
line(io) { io << Comment.colorize(location) }
|
line(io) { io << Comment.colorize(location) }
|
||||||
|
|
Loading…
Reference in a new issue