diff options
author | aycabta <aycabta@gmail.com> | 2021-03-07 10:13:14 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-03-16 15:47:27 +0900 |
commit | 971a0cd246db6578e1ea8760a903e1a23e3681f3 (patch) | |
tree | 7fa26377fac2c500522cec48160e99ce8eb9207a /test/rdoc/test_rdoc_rdoc.rb | |
parent | de8e6218a3257fe19b46ff0aa157e66f452ac8b7 (diff) |
[ruby/rdoc] Allow partial default values to be overridden with .rdoc_options
https://github.com/ruby/rdoc/commit/e14800891f
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4274
Diffstat (limited to 'test/rdoc/test_rdoc_rdoc.rb')
-rw-r--r-- | test/rdoc/test_rdoc_rdoc.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/rdoc/test_rdoc_rdoc.rb b/test/rdoc/test_rdoc_rdoc.rb index f7d9b8659f..b54cec5538 100644 --- a/test/rdoc/test_rdoc_rdoc.rb +++ b/test/rdoc/test_rdoc_rdoc.rb @@ -133,6 +133,18 @@ class TestRDocRDoc < RDoc::TestCase end end + def test_load_options_partial_override + temp_dir do + File.open '.rdoc_options', 'w' do |io| + io.write "markup: Markdown" + end + + options = @rdoc.load_options + + assert_equal 'Markdown', options.markup + end + end + def load_options_no_file temp_dir do options = @rdoc.load_options |