# File lib/flexmock/validators.rb, line 81 81: def validate(n) 82: @exp.flexmock_location_filter do 83: FlexMock.framework_adapter.assert_block( 84: lambda { 85: "Method '#{@exp}' called incorrect number of times\n" + 86: "At least #{@limit} matching #{calls(@limit)} expected\n" + 87: "#{n} matching #{calls(n)} found\n" + 88: describe_calls(@exp.mock) 89: }) { n >= @limit } 90: end 91: end