From a3ac50d661df5ca6be3de95c17124c9cdd6fce19 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Tue, 13 Nov 2018 21:44:25 -0700 Subject: [PATCH] Update harness to match recent changes --- src/spectator/internals/harness.cr | 10 +++++----- src/spectator/runnable_example.cr | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/spectator/internals/harness.cr b/src/spectator/internals/harness.cr index cb3c6fe..2f92774 100644 --- a/src/spectator/internals/harness.cr +++ b/src/spectator/internals/harness.cr @@ -36,14 +36,14 @@ module Spectator::Internals # Reports the outcome of an expectation. # An exception will be raised when a failing result is given. - def report_expectation(result : Expectations::Expectation::Result) : Nil - @reporter.report(result) + def report_expectation(expectation : Expectations::Expectation) : Nil + @reporter.report(expectation) end - # Generates the reported expectation results from the example. + # Generates the reported expectations from the example. # This should be run after the example has finished. - def expectation_results : Expectations::ExpectationResults - @reporter.results + def expectations : Expectations::ExampleExpectations + @reporter.expectations end # Creates a new harness. diff --git a/src/spectator/runnable_example.cr b/src/spectator/runnable_example.cr index b456760..5e2953c 100644 --- a/src/spectator/runnable_example.cr +++ b/src/spectator/runnable_example.cr @@ -10,7 +10,7 @@ module Spectator # and translates to a usable result. def run_impl : Result result = capture_result - expectations = Internals::Harness.current.expectation_results + expectations = Internals::Harness.current.expectations translate_result(result, expectations) end