Index: lib/test/unit/collector/dir.rb =================================================================== RCS file: /src/ruby/lib/test/unit/collector/dir.rb,v retrieving revision 1.4.2.1 diff -u -r1.4.2.1 dir.rb --- lib/test/unit/collector/dir.rb 19 Dec 2004 02:01:59 -0000 1.4.2.1 +++ lib/test/unit/collector/dir.rb 5 Jan 2005 04:05:53 -0000 @@ -75,7 +75,6 @@ end def collect_file(name, suites, already_gathered) - loadpath = $:.dup dir = File.dirname(File.expand_path(name)) $:.unshift(dir) unless $:.first == dir if(@req) @@ -85,7 +84,7 @@ end find_test_cases(already_gathered).each{|t| add_suite(suites, t.suite)} ensure - $:.replace(loadpath) + $:.delete_at $:.rindex(dir) end end end