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