mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Update harness to match recent changes
This commit is contained in:
parent
a66262d197
commit
a3ac50d661
2 changed files with 6 additions and 6 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue