Method: Test::Unit::GCStressOption#setup_options

Defined in:
lib/test/unit.rb

#setup_options(parser, options) ⇒ Object



216
217
218
219
220
221
# File 'lib/test/unit.rb', line 216

def setup_options(parser, options)
  super
  parser.on '--[no-]gc-stress', 'Set GC.stress as true' do |flag|
    options[:gc_stress] = flag
  end
end