class RSpec::Mocks::StubChain
def format_chain(*chain, &blk)
def format_chain(*chain, &blk) if Hash === chain.last hash = chain.pop hash.each do |k,v| chain << k blk = Proc.new { v } end end return chain.join('.').split('.'), blk end
def format_chain(*chain, &blk) if Hash === chain.last hash = chain.pop hash.each do |k,v| chain << k blk = Proc.new { v } end end return chain.join('.').split('.'), blk end