method
add_stub
1.2.8 -
Show latest stable
- Class:
Spec::Mocks::Proxy
add_stub(expected_from, sym, opts={}, &implementation)public
No documentation available.
# File lib/spec/mocks/proxy.rb, line 59
def add_stub(expected_from, sym, opts={}, &implementation)
__add sym
@stubs.unshift MessageExpectation.new(@error_generator, @expectation_ordering, expected_from, sym, nil, :any, opts, &implementation)
@stubs.first
end