diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/net/imap/test_imap_response_parser.rb | 10 |
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 6a5a117408..3f26e0b350 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 |