summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-03-08 06:14:03 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-03-16 15:47:27 +0900
commit61a29a41e1d0d11a9963315aa86d25ed690124c0 (patch)
treedc7518239bfb71dff67eedc1cbf495a6c9c46de5 /test
parent971a0cd246db6578e1ea8760a903e1a23e3681f3 (diff)
[ruby/rdoc] Allow empty .rdoc_options
https://github.com/ruby/rdoc/commit/0c8cb25b50
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4274
Diffstat (limited to 'test')
-rw-r--r--test/rdoc/test_rdoc_rdoc.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/rdoc/test_rdoc_rdoc.rb b/test/rdoc/test_rdoc_rdoc.rb
index b54cec5538..3910dd4656 100644
--- a/test/rdoc/test_rdoc_rdoc.rb
+++ b/test/rdoc/test_rdoc_rdoc.rb
@@ -133,6 +133,17 @@ class TestRDocRDoc < RDoc::TestCase
end
end
+ def test_load_options_empty_file
+ temp_dir do
+ File.open '.rdoc_options', 'w' do |io|
+ end
+
+ options = @rdoc.load_options
+
+ assert_equal 'rdoc', options.markup
+ end
+ end
+
def test_load_options_partial_override
temp_dir do
File.open '.rdoc_options', 'w' do |io|