Validator for call counts greater than or equal to a limit.
If the expectation has been called n times, is it still eligible to be called again? Since this validator only establishes a lower limit, not an upper limit, then the answer is always true.
# File lib/flexmock/validators.rb, line 61 def eligible?(n) true end
Validate the method expectation was called no more than n times.
# File lib/flexmock/validators.rb, line 51 def validate(n) FlexMock.framework_adapter.assert_block( "Method '#{@exp}' should be called at least #{@limit} times,\n" + "only called #{n} times") { n >= @limit } end
Generated with the Darkfish Rdoc Generator 2.