Remove space in #to_s between symbolic items

This makes example names look more like documentation by changing names 
like "Array #size is zero" to "Array#size is zero".
This commit is contained in:
Michael Miller 2019-02-17 16:29:38 -07:00
parent 8339784492
commit f6a4e6f558
2 changed files with 2 additions and 2 deletions

View file

@ -50,7 +50,7 @@ module Spectator
# The string can be given to end-users to identify the example.
def to_s(io)
@group.to_s(io)
io << ' '
io << ' ' unless symbolic? && @group.symbolic?
io << what
end
end

View file

@ -106,7 +106,7 @@ module Spectator
# ```
def to_s(io)
parent.to_s(io)
io << ' '
io << ' ' unless symbolic? && parent.symbolic?
io << what
end
end