Use ExampleFailed instead of ExpectationFailed

This commit is contained in:
Michael Miller 2021-07-10 18:15:01 -06:00
parent 5f61a24656
commit 35cb0b527e
No known key found for this signature in database
GPG key ID: FB9F12F7C646A4AD

View file

@ -59,8 +59,8 @@ module Spectator
when Nil
# If no errors occurred, then the example ran successfully.
SuccessfulResult.new(self, result.elapsed, expectations)
when ExpectationFailed
# If a required expectation fails, then a `ExpectationRailed` exception will be raised.
when ExampleFailed
# If a test fails or required expectation is not met, then an `ExampleFailed` exception was raised.
FailedResult.new(self, result.elapsed, expectations, error)
else
# Any other exception that is raised is unexpected and is an errored result.