Skip to content

Commit a8c2831

Browse files
authored
Merge pull request #648 from ruby/suppressing-stdout
Fixup #634, fixes #647
2 parents 5f93cef + 7a01369 commit a8c2831

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

test/test_rdoc_ri_driver.rb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,16 @@ def test_display_method_overridden
702702
def test_display_name
703703
util_store
704704

705-
assert_equal true, @driver.display_name('home:README.rdoc')
705+
out, = capture_io do
706+
assert_equal true, @driver.display_name('home:README.rdoc')
707+
end
708+
709+
expected = <<-EXPECTED
710+
= README
711+
This is a README
712+
EXPECTED
713+
714+
assert_equal expected, out
706715
end
707716

708717
def test_display_name_not_found_class

0 commit comments

Comments
 (0)