# File lib/flexmock/validators.rb, line 61 61: def validate(n) 62: @exp.flexmock_location_filter do 63: FlexMock.framework_adapter.assert_block( 64: lambda { 65: "Method '#{@exp}' called incorrect number of times\n" + 66: "#{@limit} matching #{calls(@limit)} expected\n" + 67: "#{n} matching #{calls(n)} found\n" + 68: describe_calls(@exp.mock) 69: } 70: ) { @limit == n } 71: end 72: end