Forward Example procsy to_s to example

https://gitlab.com/arctic-fox/spectator/-/issues/70
This commit is contained in:
Michael Miller 2022-02-22 16:36:16 -07:00
parent eb8bd88927
commit 35f8779ceb
No known key found for this signature in database
GPG key ID: AC78B32D30CE34A2
2 changed files with 10 additions and 0 deletions

View file

@ -283,6 +283,12 @@ module Spectator
# Allow instance to behave like an example.
forward_missing_to @example
# Constructs the full name or description of the example.
# This prepends names of groups this example is part of.
def to_s(io) : Nil
@example.to_s(io)
end
end
end
end