diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-24 09:57:53 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-24 09:57:53 +0000 |
commit | 4e183b11acebdbce9fe843059ddb8e18e491cce1 (patch) | |
tree | a6cd8b6ecfb5e2f52f04cbbe29e4fd9f3adbd59e /test/ruby/test_dir.rb | |
parent | 99ab1fed49ba6b441fa5a6ae3d6818fae09b760e (diff) | |
download | ruby-4e183b11acebdbce9fe843059ddb8e18e491cce1.tar.gz |
* test/ruby/test_dir.rb (TestDir::setup): ?c now makes a string.
* lib/test/unit/autorunner.rb (Test::Unit::AutoRunner::initialize):
initialize @workdir to stop warning.
* lib/drb/drb.rb (DRb::DRbServer::InvokeMethod::perform_without_block):
replace funcall by send!. other files in the distribution as well.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_dir.rb')
-rw-r--r-- | test/ruby/test_dir.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ruby/test_dir.rb b/test/ruby/test_dir.rb index c419bd8d4e..164f13f716 100644 --- a/test/ruby/test_dir.rb +++ b/test/ruby/test_dir.rb @@ -10,10 +10,10 @@ class TestDir < Test::Unit::TestCase def setup Dir.mkdir(ROOT) for i in ?a..?z - if i % 2 == 0 - FileUtils.touch(File.join(ROOT, i.chr)) + if i.ord % 2 == 0 + FileUtils.touch(File.join(ROOT, i)) else - FileUtils.mkdir(File.join(ROOT, i.chr)) + FileUtils.mkdir(File.join(ROOT, i)) end end end @@ -31,7 +31,7 @@ class TestDir < Test::Unit::TestCase break unless name = dir.read cache << [pos, name] end - for x,y in cache.sort_by {|x| x[0] % 3 } # shuffle + for x,y in cache.sort_by {|z| z[0] % 3 } # shuffle dir.seek(x) assert_equal(y, dir.read) end |