Class: Mocha::Cardinality

Class | Mocha::Cardinality
In: | lib/mocha/cardinality.rb
Parent: | Object

### Methods

allowed_any_number_of_times? at_least at_most exactly infinite? invocations_allowed? mocha_inspect needs_verifying? new satisfied? times times used? verified?

### Constants

INFINITY | = | 1 / 0.0

### Attributes

maximum | [R] |
required | [R] |

### Public Class methods

at_least(count)
at_most(count)
exactly(count)
new(required, maximum)
times(range_or_count)

### Public Instance methods

allowed_any_number_of_times?()
invocations_allowed?(invocation_count)
mocha_inspect()
needs_verifying?()
satisfied?(invocations_so_far)
used?(invocation_count)
verified?(invocation_count)

### Protected Instance methods

infinite?(number)
times(number)

[Validate]