method
add_stub
add_stub(expected_from, sym, opts={}, &implementation)
public
Hide source
# File lib/spec/mocks/proxy.rb, line 62 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