class Minitest::PathExpander
Minitest’s PathExpander
to find and filter tests.
Public Instance Methods
process_flags(flags)
click to toggle source
Overrides PathExpander#process_flags
to filter out ruby flags from minitest flags. Only supports -I<paths>, -d, and -w for ruby.
# File lib/minitest/path_expander.rb, line 20 def process_flags flags flags.reject { |flag| # all hits are truthy, so this works out well case flag when /^-I(.*)/ then $LOAD_PATH.concat $1.split(/:/) when /^-d/ then $DEBUG = true when /^-w/ then $VERBOSE = true else false end } end