summaryrefslogtreecommitdiff
path: root/lib/test/unit/collector/dir.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/test/unit/collector/dir.rb')
-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 2cee7dde44c..dadd9408c72 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)