Skip to content

Commit 6d674f4

Browse files
author
Zachary Scott
committed
Merge pull request #200 from injekt/version-test
added a test for rdoc --version option
2 parents 71da58e + a1140c2 commit 6d674f4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/test_rdoc_options.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,5 +679,16 @@ def test_write_options
679679
end
680680
end
681681

682+
def test_version
683+
out, _ = capture_io do
684+
begin
685+
@options.parse %w[--version]
686+
rescue SystemExit
687+
end
688+
end
689+
690+
assert out.include?(RDoc::VERSION)
691+
end
692+
682693
end
683694

0 commit comments

Comments
 (0)