# File lib/spec/mocks/proxy.rb, line 137 def ok_to_invoke_stub?(stub, expectation) stub && (!expectation || expectation.called_max_times?) end