diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-04-11 11:58:49 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-04-11 11:58:49 +0900 |
commit | aade69eaf8f3b08f228f4ac3fbe9c3667f106f4d (patch) | |
tree | 5e67390e5f0d9f4acad5a2d38dc9d27596e32921 /test/ruby | |
parent | bfe706716f7692f0a672a15a261ffffa25526cb1 (diff) | |
download | ruby-aade69eaf8f3b08f228f4ac3fbe9c3667f106f4d.tar.gz |
Removed unnecessary `to_a` call
`Dir.entries` returns an array.
Diffstat (limited to 'test/ruby')
-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 |