mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
0a2392a50a
attr_accessor git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
16 lines
332 B
Ruby
16 lines
332 B
Ruby
require 'net/smtp'
|
|
require 'minitest/autorun'
|
|
|
|
module Net
|
|
class TestSMTP < MiniTest::Unit::TestCase
|
|
def test_esmtp
|
|
smtp = Net::SMTP.new 'localhost', 25
|
|
assert smtp.esmtp
|
|
assert smtp.esmtp?
|
|
|
|
smtp.esmtp = 'omg'
|
|
assert_equal 'omg', smtp.esmtp
|
|
assert_equal 'omg', smtp.esmtp?
|
|
end
|
|
end
|
|
end
|