mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
use assert_raise
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
21f2c194bb
commit
ae042f21fb
30 changed files with 100 additions and 100 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue