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