build_expectation(expected_from, sym, opts, &block)public
No documentation available.
# File lib/spec/mocks/proxy.rb, line 47
def build_expectation(expected_from, sym, opts, &block)
if stub = find_matching_method_stub(sym)
stub.build_child(expected_from, block_given?? block : nil, 1, opts)
else
MessageExpectation.new(@error_generator, @expectation_ordering, expected_from, sym, block_given? ? block : nil, 1, opts)
end
end