# File lib/flexmock/validators.rb, line 116
116:     def validate(n)
117:       @exp.flexmock_location_filter do
118:         FlexMock.framework_adapter.assert_block(
119:           lambda {
120:             "Method '#{@exp}' called incorrect number of times\n" +
121:             "At most #{@limit} matching #{calls(@limit)} expected\n" +
122:             "#{n} matching #{calls(n)} found\n" +
123:             describe_calls(@exp.mock)
124:           }) { n <= @limit }
125:       end
126:     end