summaryrefslogtreecommitdiffstats
path: root/lib/test/unit
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-02 14:48:44 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-02 14:48:44 +0000
commit0e305d8f705e1eea7513450f96093e9f5aeebace (patch)
tree0cee7eb56e671ec10a1a3a5bf566a058e7459356 /lib/test/unit
parent49a041a08c276ca77d618dc2a1ad019367247ad1 (diff)
downloadruby-0e305d8f705e1eea7513450f96093e9f5aeebace.tar.gz
ruby-0e305d8f705e1eea7513450f96093e9f5aeebace.tar.xz
ruby-0e305d8f705e1eea7513450f96093e9f5aeebace.zip
* 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
Diffstat (limited to 'lib/test/unit')
-rw-r--r--lib/test/unit/collector/dir.rb2
1 files changed, 1 insertions, 1 deletions
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)