diff --git a/ChangeLog b/ChangeLog index c07fac347b..a04f9e67a8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue May 21 21:48:44 2013 Kouhei Sutou + + * test/ruby/test_dir_m17n.rb (TestDir_M17N#test_entries_compose): + Use #each instead of #map just for iteration. + Tue May 21 19:57:22 2013 Akinori MUSHA * ext/digest/lib/digest.rb (Digest::Class.file): Take optional 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!