diff options
author | Nobuyoshi Nakada <[email protected]> | 2020-04-11 11:58:49 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2020-04-11 11:58:49 +0900 |
commit | aade69eaf8f3b08f228f4ac3fbe9c3667f106f4d (patch) | |
tree | 5e67390e5f0d9f4acad5a2d38dc9d27596e32921 /test/ruby/test_dir.rb | |
parent | bfe706716f7692f0a672a15a261ffffa25526cb1 (diff) |
Removed unnecessary `to_a` call
`Dir.entries` returns an array.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3018
Diffstat (limited to 'test/ruby/test_dir.rb')
-rw-r--r-- | test/ruby/test_dir.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_dir.rb b/test/ruby/test_dir.rb index 13a0c31257..a3242a6b3d 100644 --- a/test/ruby/test_dir.rb +++ b/test/ruby/test_dir.rb @@ -318,7 +318,7 @@ class TestDir < Test::Unit::TestCase def test_entries assert_entries(Dir.open(@root) {|dir| dir.entries}) - assert_entries(Dir.entries(@root).to_a) + assert_entries(Dir.entries(@root)) assert_raise(ArgumentError) {Dir.entries(@root+"\0")} end |