From 00b4a3f9c4aaf5aa038a9530ec515e1718ae1c42 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 24 Sep 2008 17:44:39 +0000 Subject: * test: assert_raises has been deprecated since a long time ago. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/optparse/test_reqarg.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/optparse/test_reqarg.rb') diff --git a/test/optparse/test_reqarg.rb b/test/optparse/test_reqarg.rb index 0999e5e603..4ce9dd6292 100644 --- a/test/optparse/test_reqarg.rb +++ b/test/optparse/test_reqarg.rb @@ -32,7 +32,7 @@ module TestOptionParser::ReqArg end def test_short - assert_raises(OptionParser::MissingArgument) {@opt.parse!(%w"-x")} + assert_raise(OptionParser::MissingArgument) {@opt.parse!(%w"-x")} assert_equal(%w"", no_error {@opt.parse!(%w"-x foo")}) assert_equal("foo", @flag) assert_equal(%w"", no_error {@opt.parse!(%w"-xbar")}) @@ -42,7 +42,7 @@ module TestOptionParser::ReqArg end def test_abbrev - assert_raises(OptionParser::MissingArgument) {@opt.parse!(%w"-o")} + assert_raise(OptionParser::MissingArgument) {@opt.parse!(%w"-o")} assert_equal(%w"", no_error {@opt.parse!(%w"-o foo")}) assert_equal("foo", @flag) assert_equal(%w"", no_error {@opt.parse!(%w"-obar")}) @@ -52,7 +52,7 @@ module TestOptionParser::ReqArg end def test_long - assert_raises(OptionParser::MissingArgument) {@opt.parse!(%w"--opt")} + assert_raise(OptionParser::MissingArgument) {@opt.parse!(%w"--opt")} assert_equal(%w"", no_error {@opt.parse!(%w"--opt foo")}) assert_equal("foo", @flag) assert_equal(%w"foo", no_error {@opt.parse!(%w"--opt= foo")}) -- cgit v1.2.3