summaryrefslogtreecommitdiff
path: root/test/net/smtp/test_smtp.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/net/smtp/test_smtp.rb')
-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 0000000000..8af6a37d53
--- /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