summaryrefslogtreecommitdiff
path: root/test/net/smtp
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-22 23:13:49 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-22 23:13:49 +0000
commit0a2392a50aaffcb751aaf9ba1f0d5dccab6a6206 (patch)
tree717685efd97cb46682e53598a71122c8d66e838b /test/net/smtp
parentdf8e7db7c5f296df63db09e2b041336f0a8c6452 (diff)
* lib/net/smtp.rb: refactoring Net::SMTP#esmtp= to use an
attr_accessor git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/net/smtp')
-rw-r--r--test/net/smtp/test_smtp.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/net/smtp/test_smtp.rb b/test/net/smtp/test_smtp.rb
new file mode 100644
index 0000000..8af6a37
--- /dev/null
+++ b/test/net/smtp/test_smtp.rb
@@ -0,0 +1,16 @@
+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