class FlexMock::AtMostCountValidator
Validator for call counts less than or equal to a limit.
Public Instance Methods
Source
# File lib/flexmock/validators.rb, line 132 def describe ".at_most#{super}" end
Human readable description of the validator
Source
# File lib/flexmock/validators.rb, line 136 def describe_limit "At most #{@limit}" end
Source
# File lib/flexmock/validators.rb, line 127 def validate(n) validate_count(n) { n <= @limit } end
Validate the method expectation was called at least n
times.