# File lib/spec/mocks/methods.rb, line 22
      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