class RSpec::Mocks::Proxy
def replay_received_message_on(expectation)
- Private: -
def replay_received_message_on(expectation) expected_method_name = expectation.message meth_double = method_double[expected_method_name] if meth_double.expectations.any? @error_generator.raise_expectation_on_mocked_method(expected_method_name) end unless null_object? || meth_double.stubs.any? @error_generator.raise_expectation_on_unstubbed_method(expected_method_name) end @messages_received.each do |(actual_method_name, args, _)| if expectation.matches?(actual_method_name, *args) expectation.invoke(nil) end end end