class Minitest::PathExpander

def initialize args = ARGV # :nodoc:

:nodoc:
def initialize args = ARGV # :nodoc:
  args << "test" if args.empty?
  super args, TEST_GLOB
end

def process_flags flags

def process_flags flags
  flags.reject { |flag| # all hits are truthy, so this works out well
    case flag
    when /^-I(.*)/ then
      $LOAD_PATH.concat $1.split(/:/)
    when /^-d/ then
      $DEBUG = true
    when /^-w/ then
      $VERBOSE = true
    else
      false
    end
  }
end