summaryrefslogtreecommitdiff
path: root/test/test_set.rb
diff options
context:
space:
mode:
authornahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-13 04:06:31 +0000
committernahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-13 04:06:31 +0000
commit45c950c1df411bb245ddc50138b6ab64f289753b (patch)
treed99a2e0a6bfec9eeb293f75da0bfb98aef92cda2 /test/test_set.rb
parentaaa6511a15a04d53f37d4562df8e695482f4d862 (diff)
* test/test_*.rb: Pathname#parent -> Pathname#dirname.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/test_set.rb')
-rw-r--r--test/test_set.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_set.rb b/test/test_set.rb
index 2db0478..604ce93 100644
--- a/test/test_set.rb
+++ b/test/test_set.rb
@@ -1,4 +1,4 @@
require 'pathname'
-require Pathname.new(__FILE__).parent.join('inlinetest.rb')
-target = __FILE__.scan(/test_(.*\.rb)$/)[0][0]
+require Pathname.new(__FILE__).dirname.join('inlinetest.rb')
+target = __FILE__[/test_(.*\.rb)$/, 1]
InlineTest.loadtest__END__part(target)