1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/net/imap/test_imap.rb
shugo 6bd9297bb7 * lib/net/imap.rb: accept NOMODSEQ. [ruby-core:9002]
(backported from HEAD)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-11-04 13:03:20 +00:00

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