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