diff options
author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-13 04:06:31 +0000 |
---|---|---|
committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-13 04:06:31 +0000 |
commit | 45c950c1df411bb245ddc50138b6ab64f289753b (patch) | |
tree | d99a2e0a6bfec9eeb293f75da0bfb98aef92cda2 /test/test_pathname.rb | |
parent | aaa6511a15a04d53f37d4562df8e695482f4d862 (diff) | |
download | ruby-45c950c1df411bb245ddc50138b6ab64f289753b.tar.gz |
* 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_pathname.rb')
-rw-r--r-- | test/test_pathname.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_pathname.rb b/test/test_pathname.rb index ef4da4638c..981fedd98f 100644 --- a/test/test_pathname.rb +++ b/test/test_pathname.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(target) |