summaryrefslogtreecommitdiff
path: root/test/optparse
diff options
context:
space:
mode:
Diffstat (limited to 'test/optparse')
-rw-r--r--test/optparse/test_autoconf.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/optparse/test_autoconf.rb b/test/optparse/test_autoconf.rb
index 3be4a4c598..45f2ba09b2 100644
--- a/test/optparse/test_autoconf.rb
+++ b/test/optparse/test_autoconf.rb
@@ -32,6 +32,13 @@ class TestOptionParser::AutoConf < Test::Unit::TestCase
assert_equal(true, @bar)
end
+ def test_enable_value
+ @opt.parse!(%w"--enable-foo=A")
+ assert_equal("A", @foo)
+ @opt.parse!(%w"--enable-bar=B")
+ assert_equal("B", @bar)
+ end
+
def test_disable
@opt.parse!(%w"--disable-foo")
assert_equal(false, @foo)