# File lib/flexmock.rb, line 448
448:     def validate(n)
449:       assert n <= @limit,
450:         "Method '#{@exp}' should be called at most #{@limit} times,\n" +
451:         "only called #{n} times"
452:     end