Skip to content

Commit 1b5d57b

Browse files
committed
Add assertions to test_document_with_dry_run
1 parent 0d742cf commit 1b5d57b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

test/test_rdoc_rdoc.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,21 @@ def test_document_with_dry_run # functional test
5151

5252
rdoc = RDoc::RDoc.new
5353

54+
out = nil
5455
temp_dir do
55-
capture_io do
56+
out, = capture_io do
5657
rdoc.document options
5758
end
59+
60+
refute File.directory? 'doc'
61+
assert_equal rdoc, rdoc.store.rdoc
5862
end
63+
assert_includes out, '100%'
64+
65+
store = rdoc.store
66+
67+
assert_equal 'MAIN_PAGE.rdoc', store.main
68+
assert_equal 'title', store.title
5969
end
6070

6171
def test_gather_files

0 commit comments

Comments
 (0)