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

@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Changed
- Forward example procsy `to_s` to underlying example. [#70](https://gitlab.com/arctic-fox/spectator/-/issues/70)
## [0.10.5] - 2022-01-27 ## [0.10.5] - 2022-01-27
### Fixed ### Fixed
- Fixed usage of `sample` with single block argument. [#41](https://github.com/icy-arctic-fox/spectator/issues/41#issuecomment-1022525702) - Fixed usage of `sample` with single block argument. [#41](https://github.com/icy-arctic-fox/spectator/issues/41#issuecomment-1022525702)

View file

@ -283,6 +283,12 @@ module Spectator
# Allow instance to behave like an example. # Allow instance to behave like an example.
forward_missing_to @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 end
end end