method
build_child

build_child(expected_from, method_block, expected_received_count, opts={})
public
Hide source
# File lib/spec/mocks/message_expectation.rb, line 33 def build_child(expected_from, method_block, expected_received_count, opts={}) child = clone child.expected_from = expected_from child.method_block = method_block child.expected_received_count = expected_received_count child.clear_actual_received_count! new_gen = error_generator.clone new_gen.opts = opts child.error_generator = new_gen child.clone_args_to_yield @args_to_yield child end