Module: Test::Unit::RequireFiles
- Included in:
- AutoRunner::Runner
- Defined in:
- lib/test/unit.rb
Overview
:nodoc: all
Instance Method Summary collapse
Instance Method Details
#non_options(files, options) ⇒ Object
242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 |
# File 'lib/test/unit.rb', line 242 def (files, ) 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 [:parallel] result = true rescue LoadError puts "#{f}: #{$!}" end } result end |