method
build_expectation
1.3.0 -
Show latest stable
-
0 notes -
Class: Spec::Mocks::Proxy
- 1.1.4
- 1.1.12
- 1.2.0
- 1.2.8
- 1.3.0 (0)
- 1.3.1 (0)
- What's this?
build_expectation(expected_from, sym, opts, &block)
public
Hide source
# 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