Skip to content

Commit

Permalink
Merge pull request #648 from ruby/suppressing-stdout
Browse files Browse the repository at this point in the history
Fixup #634, fixes #647
  • Loading branch information
hsbt authored Aug 27, 2018
2 parents 5f93cef + 7a01369 commit a8c2831
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion test/test_rdoc_ri_driver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a8c2831

Please sign in to comment.