module RSpec::Mocks::Methods
def stub_chain(*methods)
def stub_chain(*methods) if methods.length > 1 next_in_chain = Object.new stub!(methods.shift) {next_in_chain} next_in_chain.stub_chain(*methods) else stub!(methods.shift) end end
def stub_chain(*methods) if methods.length > 1 next_in_chain = Object.new stub!(methods.shift) {next_in_chain} next_in_chain.stub_chain(*methods) else stub!(methods.shift) end end