disu.se

ExceptionClass

Namespace

Lookout::Expect

Ancestors
  1. Object

  2. Value

  3. Value::Comparable

  4. Comparable

  5. Object

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