Sha256: 09ab9cbdfd51d7bad2be82f8131e456b183cfa6050d9b9429d9098f8ee30ad86

Contents?: true

Size: 543 Bytes

Versions: 12

Compression:

Stored size: 543 Bytes

Contents

require 'optparse'

OptionParser.new do |o|
  o.on('-l', '--line=LINE', "Run tests defined at the given LINE.") do |line|
    With.options[:line] = line
  end
  
  o.on('-p', '--prepare-database', "Do not initialize fixtures to the database.") do |line|
    DO_PREPARE_DATABASE = true
  end
  
  o.on('-w', '--with=ASPECTS', "Run tests defined for the given ASPECTS (comma separated).") do |aspects|
    With.aspects += aspects.split(/,/).map(&:to_sym)
  end
end.parse!(ARGV)

DO_PREPARE_DATABASE = false unless defined?(DO_PREPARE_DATABASE)

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
adva-0.2.4 test/test_helper/parse_options.rb
adva-0.2.3 test/test_helper/parse_options.rb
adva-0.2.2 test/test_helper/parse_options.rb
adva-0.2.1 test/test_helper/parse_options.rb
adva-0.2.0 test/test_helper/parse_options.rb
adva-0.1.4 test/test_helper/parse_options.rb
adva-0.1.3 test/test_helper/parse_options.rb
adva-0.1.2 test/test_helper/parse_options.rb
adva-0.1.1 test/test_helper/parse_options.rb
adva-0.1.0 test/test_helper/parse_options.rb
adva_cms-0.0.1 test/test_helper/parse_options.rb
adva-0.0.1 adva_cms/test/test_helper/parse_options.rb