Class: Rails::TestRequirer

Inherits:
Object
  • Object
show all
Defined in:
lib/rails/test_unit/test_requirer.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.require_files(patterns) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/rails/test_unit/test_requirer.rb', line 7

def require_files(patterns)
  patterns = expand_patterns(patterns)

  Rake::FileList[patterns.compact.presence || 'test/**/*_test.rb'].to_a.each do |file|
    require File.expand_path(file)
  end
end