From ae042f21fb695fc80eb19273fa542e8dad85f19f Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 2 Jun 2015 02:18:44 +0000 Subject: use assert_raise git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/net/smtp/test_smtp.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/net/smtp/test_smtp.rb') diff --git a/test/net/smtp/test_smtp.rb b/test/net/smtp/test_smtp.rb index 748b20d65b..d8bb0c192c 100644 --- a/test/net/smtp/test_smtp.rb +++ b/test/net/smtp/test_smtp.rb @@ -1,9 +1,9 @@ require 'net/smtp' require 'stringio' -require 'minitest/autorun' +require 'test/unit' module Net - class TestSMTP < MiniTest::Unit::TestCase + class TestSMTP < Test::Unit::TestCase class FakeSocket def initialize out = "250 OK\n" @write_io = StringIO.new @@ -24,7 +24,7 @@ module Net def test_critical smtp = Net::SMTP.new 'localhost', 25 - assert_raises RuntimeError do + assert_raise RuntimeError do smtp.send :critical do raise 'fail on purpose' end -- cgit v1.2.3