From aade69eaf8f3b08f228f4ac3fbe9c3667f106f4d Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 11 Apr 2020 11:58:49 +0900 Subject: [PATCH] Removed unnecessary `to_a` call `Dir.entries` returns an array. --- test/ruby/test_dir.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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