Skip to content

Commit

Permalink
Merge pull request #200 from injekt/version-test
Browse files Browse the repository at this point in the history
added a test for rdoc --version option
  • Loading branch information
Zachary Scott committed Mar 22, 2013
2 parents 71da58e + a1140c2 commit 6d674f4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/test_rdoc_options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -679,5 +679,16 @@ def test_write_options
end
end

def test_version
out, _ = capture_io do
begin
@options.parse %w[--version]
rescue SystemExit
end
end

assert out.include?(RDoc::VERSION)
end

end

0 comments on commit 6d674f4

Please sign in to comment.