summaryrefslogtreecommitdiff
path: root/test/net/imap
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-11-04 13:03:20 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-11-04 13:03:20 +0000
commit6bd9297bb74aec320ee09000704276b18ae0318b (patch)
treee9c1ea03b25eaa3283693d73852e83b420eba3f5 /test/net/imap
parenteaedcf8ac9b29270fddccb1857d4111243bf0117 (diff)
* 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
Diffstat (limited to 'test/net/imap')
-rw-r--r--test/net/imap/test_imap.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/net/imap/test_imap.rb b/test/net/imap/test_imap.rb
new file mode 100644
index 0000000000..0ee217965c
--- /dev/null
+++ b/test/net/imap/test_imap.rb
@@ -0,0 +1,11 @@
+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