[ruby/rdoc] Dump plain objects as RDoc::Options

So that the generated `.rdoc_options` file is loadable.

6cf6e1647b
This commit is contained in:
Nobuyoshi Nakada 2021-09-15 17:26:14 +09:00 committed by git
parent 11f3882173
commit 3b3fb73d61
4 changed files with 59 additions and 33 deletions

View file

@ -254,6 +254,7 @@ class TestRDocRDoc < RDoc::TestCase
top_level = nil
temp_dir do |dir|
@rdoc.options.parse %W[--root #{test_path}]
@rdoc.options.finish
File.open 'include.txt', 'w' do |io|
io.puts ':include: test.txt'