# File lib/spec/mocks/methods.rb, line 22
      def stub_chain(*methods)
        while methods.length > 1
          stub!(methods.shift).and_return(self)
        end
        stub!(methods.shift)
      end