Class Facon::Expectation
In: lib/facon/expectation.rb
Parent: Object

An Expectation, also know as a mock method, is an expectation that an object should receive a specific message during the execution of an example.

Methods

Attributes

actual_received_count  [R] 
argument_expectation  [R] 
error_generator  [R] 
expectation_ordering  [R] 
expected_from  [R] 
expected_received_count  [R] 
method  [R] 
method_block  [R] 

Public Class methods

Public Instance methods

Sets up the expected method to raise the given exception (default: Exception).

Sets up the expected method to return the given value.

Sets up the expected method to throw the given symbol.

Sets up the expected method to yield with the given arguments.

Returns true if the given method and arguments match this Expectation.

Returns true if the given method matches this Expectation, but the given arguments don‘t.

Returns true if this expectation has been met. TODO at_least and at_most conditions

[Validate]