summaryrefslogtreecommitdiff
path: root/test/optparse/test_summary.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/optparse/test_summary.rb')
-rw-r--r--test/optparse/test_summary.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/optparse/test_summary.rb b/test/optparse/test_summary.rb
index b743aa00c1..2f389a3535 100644
--- a/test/optparse/test_summary.rb
+++ b/test/optparse/test_summary.rb
@@ -44,4 +44,13 @@ class TestOptionParser::SummaryTest < TestOptionParser
assert_equal("foo bar\n", o.to_s, bug6348)
assert_equal(["foo bar"], o.to_a, bug6348)
end
+
+ def test_ver
+ o = OptionParser.new("foo bar")
+ o.program_name = "foo"
+ o.version = [0, 1]
+ assert_equal "foo 0.1", o.ver
+ o.release = "rel"
+ assert_equal "foo 0.1 (rel)", o.ver
+ end
end