# File lib/flexmock/rspec_spy_matcher.rb, line 17 17: def matches?(spy) 18: @spy = spy 19: @options = {} 20: @options[:times] = @times if @times 21: @options[:with_block] = @needs_block unless @needs_block.nil? 22: @spy.flexmock_received?(@method_name, @args, @options) 23: end