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,8 +1,8 @@
|
|||
require 'net/smtp'
|
||||
require 'minitest/autorun'
|
||||
require 'test/unit'
|
||||
|
||||
module Net
|
||||
class TestSSLSocket < MiniTest::Unit::TestCase
|
||||
class TestSSLSocket < Test::Unit::TestCase
|
||||
class MySMTP < SMTP
|
||||
attr_accessor :fake_tcp, :fake_ssl
|
||||
|
||||
|
@ -52,7 +52,7 @@ module Net
|
|||
connection.fake_tcp = tcp_socket
|
||||
connection.fake_ssl = ssl_socket
|
||||
|
||||
assert_raises(OpenSSL::SSL::SSLError) do
|
||||
assert_raise(OpenSSL::SSL::SSLError) do
|
||||
connection.start
|
||||
end
|
||||
assert_equal true, ssl_socket.closed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue