Validator for call counts less than or equal to a limit.
Methods
Public Instance methods
Validate the method expectation was called at least n times.
[ show source ]
# File lib/flexmock/validators.rb, line 71
71: def validate(n)
72: FlexMock.framework_adapter.assert_block(
73: "Method '#{@exp}' should be called at most #{@limit} times,\n" +
74: "only called #{n} times") { n <= @limit }
75: end