Skip to content

Commit

Permalink
Dir.children is 2.5+
Browse files Browse the repository at this point in the history
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:
```
  • Loading branch information
nobu committed May 17, 2021
1 parent 1eded93 commit 5a4a64d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/rdoc/test_rdoc_rdoc.rb
Expand Up @@ -464,7 +464,7 @@ def test_remove_unparseable_CVE_2021_31799
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

Expand Down

0 comments on commit 5a4a64d

Please sign in to comment.