method
find_matching_expectation

find_matching_expectation(sym, *args)
private
Hide source
# File lib/spec/mocks/proxy.rb, line 253 def find_matching_expectation(sym, *args) @expectations.find {|expectation| expectation.matches(sym, args) && !expectation.called_max_times?} || @expectations.find {|expectation| expectation.matches(sym, args)} end