From 03d36a44935d5da8720514204b527be41828c7c4 Mon Sep 17 00:00:00 2001 From: SHIBATA Hiroshi Date: Mon, 27 Aug 2018 10:06:33 +0900 Subject: [PATCH 1/2] Fixup #634, fixes #647 --- test/test_rdoc_ri_driver.rb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/test/test_rdoc_ri_driver.rb b/test/test_rdoc_ri_driver.rb index ddd0904021..16c764fee3 100644 --- a/test/test_rdoc_ri_driver.rb +++ b/test/test_rdoc_ri_driver.rb @@ -702,7 +702,16 @@ def test_display_method_overridden def test_display_name util_store - assert_equal true, @driver.display_name('home:README.rdoc') + out, = capture_io do + assert_equal true, @driver.display_name('home:README.rdoc') + end + + expected = <<-EXPECTED += README +This is a README + EXPECTED + + assert_equal expected, out end def test_display_name_not_found_class From 7a013695f19a4a81538693c40d8e056b5ba6a79c Mon Sep 17 00:00:00 2001 From: SHIBATA Hiroshi Date: Mon, 27 Aug 2018 10:07:42 +0900 Subject: [PATCH 2/2] indent --- test/test_rdoc_ri_driver.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_rdoc_ri_driver.rb b/test/test_rdoc_ri_driver.rb index 16c764fee3..f636c6346f 100644 --- a/test/test_rdoc_ri_driver.rb +++ b/test/test_rdoc_ri_driver.rb @@ -709,7 +709,7 @@ def test_display_name expected = <<-EXPECTED = README This is a README - EXPECTED + EXPECTED assert_equal expected, out end