summaryrefslogtreecommitdiffstats
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
commit83fd4310ab5fb6a7242448d6ce41fe41df71bd6e (patch)
treee10783d42a8d1434e4f14317e71b95c14ecaafe3
parent128a330294dc9b14aa09320d9ee0e351625b103c (diff)
downloadruby-83fd4310ab5fb6a7242448d6ce41fe41df71bd6e.tar.gz
ruby-83fd4310ab5fb6a7242448d6ce41fe41df71bd6e.tar.xz
ruby-83fd4310ab5fb6a7242448d6ce41fe41df71bd6e.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/branches/ruby_1_8@11066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--lib/test/unit/collector/dir.rb2
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index d52b8349a..c840013b7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,10 +1,13 @@
-Mon Oct 2 22:28:17 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Mon Oct 2 23:47:55 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/test/unit/autorunner.rb (Test::Unit::AutoRunner::COLLECTORS):
base directory should be lower precedence. fixed: [ruby-dev:29622]
* lib/test/unit/autorunner.rb (Test::Unit::AutoRunner#options): typo.
+ * lib/test/unit/collector/dir.rb (Test::Unit::Collector::Dir#collect_file):
+ load expanded path. fixed: [ruby-dev:29621]
+
Mon Oct 2 15:49:19 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* instruby.rb: batfile should be CRLF'ed.
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)