mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 04:55:21 +02:00
* 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
This commit is contained in:
parent
9952139011
commit
e48c8be89b
3 changed files with 19 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue