From 35cb0b527ef08e818997123f99f9e659f286e8ae Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Sat, 10 Jul 2021 18:15:01 -0600 Subject: [PATCH] Use ExampleFailed instead of ExpectationFailed --- src/spectator/runnable_example.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spectator/runnable_example.cr b/src/spectator/runnable_example.cr index fbfb40e..be35c8f 100644 --- a/src/spectator/runnable_example.cr +++ b/src/spectator/runnable_example.cr @@ -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.