mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Formatting
This commit is contained in:
parent
cc09cb1b77
commit
84ac41967b
2 changed files with 5 additions and 4 deletions
|
@ -44,10 +44,10 @@ module Spectator::Formatting::Components
|
|||
|
||||
private def source_line(io)
|
||||
source = if (result = @example.result).responds_to?(:source)
|
||||
result.source
|
||||
else
|
||||
@example.location
|
||||
end
|
||||
result.source
|
||||
else
|
||||
@example.location
|
||||
end
|
||||
line(io) { io << Comment.colorize(source) }
|
||||
end
|
||||
|
||||
|
|
|
@ -35,6 +35,7 @@ module Spectator
|
|||
|
||||
false # TODO: Report real result
|
||||
|
||||
|
||||
ensure
|
||||
close
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue