module Minitest::Rails::Testing

Public Class Methods

all_tasks() click to toggle source

Retreive all the directories that have tests in them.

# File lib/minitest/rails/testing.rb, line 21
def self.all_tasks
  Dir["test/*/"].map {|dir| /test\/(.+?)\//.match(dir)[1] }.select do |dir|
    !Dir.glob("test/#{dir}/**/*_test.rb").empty?
  end
end