Class RR::Double
In: lib/rr/double.rb
Parent: Object

RR::Double is the use case for a method call. It has the ArgumentEqualityExpectation, TimesCalledExpectation, and the implementation.

Methods

Included Modules

Space::Reader

Attributes

definition  [R] 
double_injection  [R] 
times_called  [R] 
times_called_expectation  [R] 

Public Class methods

Public Instance methods

Double#attempt? returns true when the TimesCalledExpectation is satisfied.

Double#exact_match? returns true when the passed in arguments exactly match the ArgumentEqualityExpectation arguments.

The Arguments that this Double expects

The method name that this Double is attatched to

The TimesCalledMatcher for the TimesCalledExpectation

Double#verify verifies the the TimesCalledExpectation is satisfied for this double. A TimesCalledError is raised if the TimesCalledExpectation is not met.

Double#wildcard_match? returns true when the passed in arguments wildcard match the ArgumentEqualityExpectation arguments.

Protected Instance methods

[Validate]