method
find_matching_expectation
1.3.1 -
Show latest stable
- Class:
Spec::Mocks::Proxy
find_matching_expectation(sym, *args)private
No documentation available.
# 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