diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-02 02:18:44 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-02 02:18:44 +0000 |
commit | bfb7e27fe2b73e054d0382990ceef7189de71d28 (patch) | |
tree | 6b64fce04b19a8e1531f60a7d3d47c8a9fc97a20 /test/xmlrpc/test_client.rb | |
parent | 130a077f74031a16430ec8b20955b9e57f75397c (diff) | |
download | ruby-bfb7e27fe2b73e054d0382990ceef7189de71d28.tar.gz |
use assert_raise
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/xmlrpc/test_client.rb')
-rw-r--r-- | test/xmlrpc/test_client.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/xmlrpc/test_client.rb b/test/xmlrpc/test_client.rb index 83f8c6b45d..b189728bc6 100644 --- a/test/xmlrpc/test_client.rb +++ b/test/xmlrpc/test_client.rb @@ -1,4 +1,4 @@ -require 'minitest/autorun' +require 'test/unit' require 'xmlrpc/client' require 'net/http' begin @@ -7,7 +7,7 @@ rescue LoadError end module XMLRPC - class ClientTest < MiniTest::Unit::TestCase + class ClientTest < Test::Unit::TestCase module Fake class HTTP attr_accessor :read_timeout, :open_timeout, :use_ssl @@ -182,13 +182,13 @@ module XMLRPC end def test_new2_bad_protocol - assert_raises(ArgumentError) do + assert_raise(ArgumentError) do XMLRPC::Client.new2 'ftp://example.org' end end def test_new2_bad_uri - assert_raises(ArgumentError) do + assert_raise(ArgumentError) do XMLRPC::Client.new2 ':::::' end end |