You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: spec_helper.rb
    path of file: ./repos/backup/spec
    
    the code of the file until where you have to start completion: require "rubygems" if RUBY_VERSION < "1.9"
require "bundler/setup"
require "backup"

require "timecop"

Dir[File.expand_path("../support/**/*.rb", __FILE__)].each { |f| require f }

module Backup
  module ExampleHelpers
    # ripped from MiniTest :)
  
    
    def capture_io
      require "stringio"

      orig_stdout = $stdout
      orig_stderr = $stderr
      captured_stdout = StringIO.new
      captured_stderr = StringIO.new
      $stdout = captured_stdout
      $stderr = captured_stderr

      yield

      return captured_stdout.string, captured_stderr.string
    ensure
      $stdout = orig_stdout
      $stderr = orig_stderr
    end