mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Use ExampleFailed instead of ExpectationFailed
This commit is contained in:
parent
5f61a24656
commit
35cb0b527e
1 changed files with 2 additions and 2 deletions
|
@ -59,8 +59,8 @@ module Spectator
|
||||||
when Nil
|
when Nil
|
||||||
# If no errors occurred, then the example ran successfully.
|
# If no errors occurred, then the example ran successfully.
|
||||||
SuccessfulResult.new(self, result.elapsed, expectations)
|
SuccessfulResult.new(self, result.elapsed, expectations)
|
||||||
when ExpectationFailed
|
when ExampleFailed
|
||||||
# If a required expectation fails, then a `ExpectationRailed` exception will be raised.
|
# If a test fails or required expectation is not met, then an `ExampleFailed` exception was raised.
|
||||||
FailedResult.new(self, result.elapsed, expectations, error)
|
FailedResult.new(self, result.elapsed, expectations, error)
|
||||||
else
|
else
|
||||||
# Any other exception that is raised is unexpected and is an errored result.
|
# Any other exception that is raised is unexpected and is an errored result.
|
||||||
|
|
Loading…
Reference in a new issue