Formatting

This commit is contained in:
Michael Miller 2021-05-16 19:29:20 -06:00
parent cc09cb1b77
commit 84ac41967b
No known key found for this signature in database
GPG key ID: FB9F12F7C646A4AD
2 changed files with 5 additions and 4 deletions

View file

@ -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

View file

@ -35,6 +35,7 @@ module Spectator
false # TODO: Report real result
ensure
close
end