diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-21 12:50:21 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-21 12:50:21 +0000 |
commit | 9662e3ded501f8df72e7ba80e6eb35ae86bbecc9 (patch) | |
tree | 0d99cd22e0eb26e41a7a5ef70e7ad9601a79b29b /test | |
parent | 07a6b4cbb509f113747cf2f77a6a6a34c9a7e7d2 (diff) | |
download | ruby-9662e3ded501f8df72e7ba80e6eb35ae86bbecc9.tar.gz |
* 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
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_dir_m17n.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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! |