mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
07a6b4cbb5
commit
9662e3ded5
2 changed files with 6 additions and 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
|
||||
|
|
|
@ -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!
|
||||
|
|
Loading…
Add table
Reference in a new issue