From 0e305d8f705e1eea7513450f96093e9f5aeebace Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 2 Oct 2006 14:48:44 +0000 Subject: * lib/test/unit/collector/dir.rb (Test::Unit::Collector::Dir#collect_file): load expanded path. fixed: [ruby-dev:29621] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/test/unit/collector/dir.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/test') diff --git a/lib/test/unit/collector/dir.rb b/lib/test/unit/collector/dir.rb index 2cee7dde4..dadd9408c 100644 --- a/lib/test/unit/collector/dir.rb +++ b/lib/test/unit/collector/dir.rb @@ -77,7 +77,7 @@ module Test end def collect_file(name, suites, already_gathered) - dir = File.dirname(File.expand_path(name, @base)) + dir = File.dirname(name = File.expand_path(name, @base)) $:.unshift(dir) if(@req) @req.require(name) -- cgit