class FlexMock::ExactCountValidator

Validator for exact call counts.

Public Instance Methods

validate(n) click to toggle source

Validate that the method expectation was called exactly n times.

# File lib/flexmock/validators.rb, line 39
def validate(n)
  FlexMock.framework_adapter.assert_equal @limit, n,
    "method '#{@exp}' called incorrect number of times"
end