Skip to content

Commit

Permalink
Add assertions to test_document_with_dry_run
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Nov 21, 2017
1 parent 0d742cf commit 1b5d57b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion test/test_rdoc_rdoc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,21 @@ def test_document_with_dry_run # functional test

rdoc = RDoc::RDoc.new

out = nil
temp_dir do
capture_io do
out, = capture_io do
rdoc.document options
end

refute File.directory? 'doc'
assert_equal rdoc, rdoc.store.rdoc
end
assert_includes out, '100%'

store = rdoc.store

assert_equal 'MAIN_PAGE.rdoc', store.main
assert_equal 'title', store.title
end

def test_gather_files
Expand Down

0 comments on commit 1b5d57b

Please sign in to comment.