mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00

(backported from HEAD) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
11 lines
339 B
Ruby
11 lines
339 B
Ruby
require "net/imap"
|
|
require "test/unit"
|
|
|
|
class IMAPTest < Test::Unit::TestCase
|
|
def test_parse_nomodesq
|
|
parser = Net::IMAP::ResponseParser.new
|
|
r = parser.parse(%Q'* OK [NOMODSEQ] Sorry, modsequences have not been enabled on this mailbox\r\n')
|
|
assert_equal("OK", r.name)
|
|
assert_equal("NOMODSEQ", r.data.code.name)
|
|
end
|
|
end
|