Maintenance of Ruby 2.0.0 ended on February 24, 2016. Read more

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 236
def non_options(files, options)
  return false if !super
  result = false
  files.each {|f|
    d = File.dirname(path = File.realpath(f))
    unless $:.include? d
      $: << d
    end
    begin
      require path unless options[:parallel]
      result = true
    rescue LoadError
      puts "#{f}: #{$!}"
    end
  }
  result
end