summaryrefslogtreecommitdiff
path: root/test/rdoc/test_rdoc_rdoc.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-05-15 01:24:15 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-05-21 15:53:34 +0900
commita298bdf8606bda9c9868c44618c5b70a96c2712c (patch)
treea274d6094b3a395c3a1f2bdb642531354e2e78f4 /test/rdoc/test_rdoc_rdoc.rb
parent21d24767e83e6a75847c0c728d99f6103757e868 (diff)
[ruby/rdoc] Dir.children is 2.5+
RDoc seems still supporting outdated 2.4. https://github.com/ruby/rdoc/runs/2565344070?check_suite_focus=true#step:5:64 ``` Error: test_remove_unparseable_CVE_2021_31799(TestRDocRDoc): NoMethodError: undefined method `children' for Dir:Class /home/runner/work/rdoc/rdoc/test/rdoc/test_rdoc_rdoc.rb:467:in `block in test_remove_unparseable_CVE_2021_31799' 464: end 465: 466: assert_equal file_list, @rdoc.remove_unparseable(file_list) => 467: assert_equal file_list, Dir.children('.') 468: end 469: end 470: ``` https://github.com/ruby/rdoc/commit/5a4a64dc0f
Diffstat (limited to 'test/rdoc/test_rdoc_rdoc.rb')
-rw-r--r--test/rdoc/test_rdoc_rdoc.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rdoc/test_rdoc_rdoc.rb b/test/rdoc/test_rdoc_rdoc.rb
index a83d5a1b88..15f5383fa7 100644
--- a/test/rdoc/test_rdoc_rdoc.rb
+++ b/test/rdoc/test_rdoc_rdoc.rb
@@ -464,7 +464,7 @@ class TestRDocRDoc < RDoc::TestCase
end
assert_equal file_list, @rdoc.remove_unparseable(file_list)
- assert_equal file_list, Dir.children('.')
+ assert_equal file_list, Dir.entries('.') - %w[. ..]
end
end