disu.se

ExpectationsClass

Namespace

Lookout

Ancestors
  1. Enumerable

  2. Value

  3. Object

Represents the “Expectations” keyword in expectation files and the expectation files themselves. Used by Interfaces::Commandline and should be used by other interfaces as the main access point to expectation files. Implemented as an Enumerable over the expect blocks found in any of the expectations blocks in the expectation file.

Children

Context

Context in which expectations blocks are evaluated.

Constructor

initialize(pathString)#

Prepares the enumeration of the expect blocks found in the expectations file pointed to by the expanded path.

Instance Methods

each{ |expectExpect::Object| … }self#

Enumerates the expect blocks.

RaisesNoMemoryError, SignalException, SystemExit

If raised; all other exceptions are caught and turned into failing expect blocks, located at the source of the exception

eachEnumerator<Expect::Object>#

Returns an Enumerator over the expect blocks.