disu.se

ExceptionClass

Namespace

Lookout::Expected

Ancestors
  1. Object

  2. Value

  3. Object

Represents expected ::Exceptions.

Constructor

This class inherits its constructor from Object.

Instance Methods

expect(file::String, line::Integer){ |exception::Exception|::Exception … }Expect::Exception#

Returns an expect block for the receiver at line in file that’ll yield the expected exception and expect the exception to be raised.

difference(actual::Exception)Difference::Exception?#

Returns a difference report between actual and #expected unless they’re #equal? or their classes are #== and their messages match or #expecteds message is a Regexp that matches actual’s message.