Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-1645

Replace Object#tee with more conventional Object#tap in specs

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8
    • 0.9
    • Ruby - Library
    • None
    • Patch Available

    Description

      The spec_helper.rb defines an Object#tee method, which is functionally equivalent to Object#tap. Object#tap was added to Ruby 1.9 and to 1.8.7.

      Attached is a patch that replaces the usage of 'tee' with 'tap' and will define the 'tap' method if it's missing (should only happen when Ruby 1.8.6 or below is used). If there's no need to support such a low minimum, this could be removed.

      Attachments

        Activity

          People

            nbeyer Nathan Beyer
            nbeyer Nathan Beyer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: