diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | test/ruby/test_dir_m17n.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Tue May 21 21:48:44 2013 Kouhei Sutou <kou@cozmixng.org> + + * 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 <knu@iDaemons.org> * 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! |