summaryrefslogtreecommitdiffstats
path: root/test/xmlrpc/test_features.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-24 17:44:39 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-24 17:44:39 +0000
commit3454e2b989d541a1b6dfa0e5f6432cce17cc16d7 (patch)
treeb57bc2afea00aa87978f691526dd7adc1b8a067d /test/xmlrpc/test_features.rb
parent67f7cf01b9a126710761dd1f7e3c7a96e74ce621 (diff)
downloadruby-3454e2b989d541a1b6dfa0e5f6432cce17cc16d7.tar.gz
ruby-3454e2b989d541a1b6dfa0e5f6432cce17cc16d7.tar.xz
ruby-3454e2b989d541a1b6dfa0e5f6432cce17cc16d7.zip
* test: assert_raises has been deprecated since a long time ago.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/xmlrpc/test_features.rb')
-rw-r--r--test/xmlrpc/test_features.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/xmlrpc/test_features.rb b/test/xmlrpc/test_features.rb
index 96a631320..377d539f2 100644
--- a/test/xmlrpc/test_features.rb
+++ b/test/xmlrpc/test_features.rb
@@ -15,7 +15,7 @@ class Test_Features < Test::Unit::TestCase
XMLRPC::Config.module_eval {remove_const(:ENABLE_NIL_CREATE)}
XMLRPC::Config.const_set(:ENABLE_NIL_CREATE, false)
- assert_raises(RuntimeError) { str = c.methodCall("test", *@params) }
+ assert_raise(RuntimeError) { str = c.methodCall("test", *@params) }
XMLRPC::Config.module_eval {remove_const(:ENABLE_NIL_CREATE)}
XMLRPC::Config.const_set(:ENABLE_NIL_CREATE, true)
@@ -35,7 +35,7 @@ class Test_Features < Test::Unit::TestCase
XMLRPC::Config.module_eval {remove_const(:ENABLE_NIL_PARSER)}
XMLRPC::Config.const_set(:ENABLE_NIL_PARSER, false)
- assert_raises(RuntimeError) { para = parser.parseMethodCall(str) }
+ assert_raise(RuntimeError) { para = parser.parseMethodCall(str) }
XMLRPC::Config.module_eval {remove_const(:ENABLE_NIL_PARSER)}
XMLRPC::Config.const_set(:ENABLE_NIL_PARSER, true)