railties/lib/rails/test_unit/sub_test_task.rb
# :nodoc: all
# A utility class which is used primarily in "rails/test_unit/testing.rake"
# to help define rake tasks corresponding to <tt>rake test</tt>.
#
# This class takes a TestInfo class and defines the appropriate rake task
# based on the information, then invokes it.
:nodoc: all
A utility class which is used primarily in "rails/test_unit/testing.rake"
to help define rake tasks corresponding to rake test.

This class takes a TestInfo class and defines the appropriate rake task
based on the information, then invokes it.
: nodoc : all A utility class which is used primarily in " rails / test_unit / testing . rake " to help define rake tasks corresponding to rake test . This class takes a TestInfo class and defines the appropriate rake task based on the information then invokes it .
def define
      task @name do
        if ENV['TESTOPTS']
          ARGV.replace Shellwords.split ENV['TESTOPTS']
        end
        libs = @libs - $LOAD_PATH
        $LOAD_PATH.unshift(*libs)
        file_list.each { |fl|
          FileList[fl].to_a.each { |f| require File.expand_path f }
        }
      end
    end
def define task @name do if ENV [ 'TESTOPTS' ] ARGV . replace Shellwords . split ENV [ 'TESTOPTS' ] end libs = @libs - $LOAD_PATH $LOAD_PATH . unshift ( * libs ) file_list . each { | fl | FileList [ fl ] . to_a . each { | f | require File . expand_path f } } end end
:nodoc: all
A utility class which is used primarily in "rails/test_unit/testing.rake"
to help define rake tasks corresponding to <tt>rake test</tt>.
: nodoc : all A utility class which is used primarily in " rails / test_unit / testing . rake " to help define rake tasks corresponding to <tt > rake test< / tt > .