mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* lib/net/imap.rb (default_port, default_imap_port,
default_tls_port, default_ssl_port, default_imaps_port): added methods for consistency with Net::POP. based on the patch by art lussos. [ruby-core:38997] [Bug #5198] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
60c8455253
commit
26f73a5117
3 changed files with 31 additions and 0 deletions
|
@ -418,6 +418,14 @@ class IMAPTest < Test::Unit::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
def test_default_port
|
||||
assert_equal(143, Net::IMAP.default_port)
|
||||
assert_equal(143, Net::IMAP.default_imap_port)
|
||||
assert_equal(993, Net::IMAP.default_tls_port)
|
||||
assert_equal(993, Net::IMAP.default_ssl_port)
|
||||
assert_equal(993, Net::IMAP.default_imaps_port)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def imaps_test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue