summaryrefslogtreecommitdiff
path: root/test/net/imap
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-11 03:21:43 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-11 03:21:43 +0000
commite48c8be89b6324d817e46e3feadfc207226d93a6 (patch)
tree7798ee244b182591f630ffd1822275aca481eeb7 /test/net/imap
parent9952139011c0e8a28e29c7d9f65edf5912a334fb (diff)
* lib/net/imap.rb: includes the sequence number of UID in a error
message. suggested by art lussos. [ruby-core:41413] [Feature #5692] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/net/imap')
-rw-r--r--test/net/imap/test_imap_response_parser.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/net/imap/test_imap_response_parser.rb b/test/net/imap/test_imap_response_parser.rb
index 6a5a1174082..3f26e0b3503 100644
--- a/test/net/imap/test_imap_response_parser.rb
+++ b/test/net/imap/test_imap_response_parser.rb
@@ -116,4 +116,14 @@ EOF
* 1 FETCH (UID 92285 )
EOF
end
+
+ def test_msg_att_parse_error
+ parser = Net::IMAP::ResponseParser.new
+ e = assert_raise(Net::IMAP::ResponseParseError) {
+ response = parser.parse(<<EOF.gsub(/\n/, "\r\n").taint)
+* 123 FETCH (UNKNOWN 92285)
+EOF
+ }
+ assert_match(/ for \{123\}/, e.message)
+ end
end