From 9662e3ded501f8df72e7ba80e6eb35ae86bbecc9 Mon Sep 17 00:00:00 2001 From: kou Date: Tue, 21 May 2013 12:50:21 +0000 Subject: * test/ruby/test_dir_m17n.rb (TestDir_M17N#test_entries_compose): Use #each instead of #map just for iteration. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_dir_m17n.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/ruby/test_dir_m17n.rb b/test/ruby/test_dir_m17n.rb index 0816873647..ce70971816 100644 --- a/test/ruby/test_dir_m17n.rb +++ b/test/ruby/test_dir_m17n.rb @@ -323,7 +323,7 @@ class TestDir_M17N < Test::Unit::TestCase else enc = Encoding.find("filesystem") enc = Encoding::ASCII_8BIT if enc == Encoding::US_ASCII - orig.map {|o| o.force_encoding(enc) } + orig.each {|o| o.force_encoding(enc) } end ents = Dir.entries(".", opts).reject {|n| /\A\./ =~ n} ents.sort! -- cgit v1.2.3