Fix type resolution issue, force to Result

This commit is contained in:
Michael Miller 2019-01-19 13:37:34 -07:00
parent a3ee53ed33
commit 4a1b646015

View file

@ -9,13 +9,13 @@ module Spectator
@config.formatter.start_suite @config.formatter.start_suite
elapsed = Time.measure do elapsed = Time.measure do
results = @suite.map do |example| results = @suite.map do |example|
run_example(example) run_example(example).as(Result)
end end
end end
@config.formatter.end_suite(TestSuiteResults.new(results, elapsed)) @config.formatter.end_suite(TestSuiteResults.new(results, elapsed))
end end
private def run_example(example) private def run_example(example) : Result
@config.formatter.start_example(example) @config.formatter.start_example(example)
result = Internals::Harness.run(example) result = Internals::Harness.run(example)
@config.formatter.end_example(result) @config.formatter.end_example(result)