In Files

  • test/unit.rb

Methods

Test::Unit::RequireFiles

Public Instance Methods

non_options(files, options) click to toggle source
 
               # File test/unit.rb, line 212
def non_options(files, options)
  return false if !super
  result = false
  files.each {|f|
    d = File.dirname(path = File.expand_path(f))
    unless $:.include? d
      $: << d
    end
    begin
      require path unless options[:parallel]
      result = true
    rescue LoadError
      puts "#{f}: #{$!}"
    end
  }
  result
end