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) private def source_line(io)
source = if (result = @example.result).responds_to?(:source) source = if (result = @example.result).responds_to?(:source)
result.source result.source
else else
@example.location @example.location
end end
line(io) { io << Comment.colorize(source) } line(io) { io << Comment.colorize(source) }
end end

View file

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