Module: Test::Unit::LoadPathOption

Includes:
Options
Included in:
Runner
Defined in:
lib/test/unit.rb

Instance Method Summary collapse

Methods included from Options

#initialize, #option_parser, #process_args

Instance Method Details

#setup_options(parser, options) ⇒ Object



177
178
179
180
181
182
# File 'lib/test/unit.rb', line 177

def setup_options(parser, options)
  super
  parser.on '-Idirectory', 'Add library load path' do |dirs|
    dirs.split(':').each { |d| $LOAD_PATH.unshift d }
  end
end