Remove inspection quotes from around output values

This commit is contained in:
Michael Miller 2019-08-09 11:23:10 -06:00
parent 0dfde61807
commit e763296c26

View file

@ -1,8 +1,8 @@
module Spectator::Formatting module Spectator::Formatting
# A single labeled value from the `Spectator::Matchers::MatchData#value` method. # A single labeled value from the `Spectator::Matchers::MatchData#value` method.
private struct MatchDataValuePair(T) private struct MatchDataValuePair
# Creates the pair formatter. # Creates the pair formatter.
def initialize(@key : Symbol, @value : T, @padding : Int32) def initialize(@key : Symbol, @value : String, @padding : Int32)
end end
# Appends the pair to the output. # Appends the pair to the output.
@ -10,7 +10,7 @@ module Spectator::Formatting
@padding.times { io << ' ' } @padding.times { io << ' ' }
io << @key io << @key
io << ": " io << ": "
@value.inspect(io) io << @value
end end
end end
end end