summaryrefslogtreecommitdiffstats
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
commit948bce5f4c86b5b2013a087ed3a5d8d018b9cfd6 (patch)
treed99a2e0a6bfec9eeb293f75da0bfb98aef92cda2 /test/test_set.rb
parent367b037ff8a18f3e0558ea56055c45b1e766df63 (diff)
downloadruby-948bce5f4c86b5b2013a087ed3a5d8d018b9cfd6.tar.gz
ruby-948bce5f4c86b5b2013a087ed3a5d8d018b9cfd6.tar.xz
ruby-948bce5f4c86b5b2013a087ed3a5d8d018b9cfd6.zip
* test/test_*.rb: Pathname#parent -> Pathname#dirname.
git-svn-id: http://svn.ruby-lang.org/repos/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 2db04787f..604ce93ca 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)