ExceptionClass
- Namespace
- Ancestors
Expect block of Expected::Exceptions.
Constructor
This class inherits its constructor from Object.
Instance Methods
call#⚙
Evaluates the expect block and checks the first raised Exception against the expected Exception. If no exception is raised, the actual result is checked against the expected value.
- Returns
-
- Results::Error
-
If the raised exception isn’t of the same class as that of the expected result
- Results::Success
-
If there are no differences between the actual result and the expected value
- Results::Failure
-
If there are differences between the actual result and the expected value