summaryrefslogtreecommitdiff
path: root/test/optparse
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-05 10:39:58 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-05 10:39:58 +0000
commitaf3da7d124e67a195e761d2b8e82f80320f57387 (patch)
tree43932329cfd3263545639cc67fe8cf6b0f21d113 /test/optparse
parent174052749c836c59dcdb13a38c181bb3374b66e6 (diff)
* lib/optparse.rb (OptionParser::Completion#complete): new parameter
to direct case insensitiveness. * lib/optparse.rb (OptionParser#order!): ignore case only for long option. [ruby-dev:25048] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/optparse')
-rw-r--r--test/optparse/test_noarg.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/optparse/test_noarg.rb b/test/optparse/test_noarg.rb
index cd57ed5..28c4690 100644
--- a/test/optparse/test_noarg.rb
+++ b/test/optparse/test_noarg.rb
@@ -31,8 +31,8 @@ module TestOptionParser::NoArg
assert_equal(%w"", no_error {@opt.parse!(%w"-o")})
assert_equal(true, @flag)
@flag = nil
- no_error {@opt.parse!(%w"-O")}
- assert_equal(true, @flag)
+ assert_raises(OptionParser::InvalidOption) {@opt.parse!(%w"-O")}
+ assert_nil(@flag)
@flag = nil
assert_equal(%w"foo", no_error {@opt.parse!(%w"-o foo")})
assert_equal(true, @flag)