From 320553cda48fac77e8cc2284b10b0f091a51722e Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 24 Aug 2007 09:57:53 +0000 Subject: * 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: http://svn.ruby-lang.org/repos/ruby/trunk@13244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_dir.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/ruby/test_dir.rb') diff --git a/test/ruby/test_dir.rb b/test/ruby/test_dir.rb index c419bd8d4..164f13f71 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 -- cgit