method
collect_file

v2_2_9 -
Show latest stable
-
0 notes -
Class: Test::Unit::Collector::Dir
- 1_8_6_287 (0)
- 1_8_7_72 (0)
- 1_8_7_330 (0)
- 1_9_1_378
- 1_9_2_180
- 1_9_3_125 (0)
- 1_9_3_392 (0)
- 2_1_10 (0)
- 2_2_9 (0)
- 2_4_6
- 2_5_5
- 2_6_3
- What's this?
collect_file(name, suites, already_gathered)
public
Hide source
# File lib/rake/ruby182_test_unit_fix.rb, line 12 def collect_file(name, suites, already_gathered) # :nodoc: dir = File.dirname(File.expand_path(name)) $:.unshift(dir) unless $:.first == dir if @req @req.require(name) else require(name) end find_test_cases(already_gathered).each do |t| add_suite(suites, t.suite) end ensure $:.delete_at $:.rindex(dir) end