diff options
author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-23 05:07:21 +0000 |
---|---|---|
committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-23 05:07:21 +0000 |
commit | 8541ed6df6a0082cb5f319dcfccd628f8d1d755f (patch) | |
tree | f3894154200bf6b9d27f21d2ddbd79ea5e96e704 /test/net/imap/test_imap_response_parser.rb | |
parent | 3ae96e8c6bffe0e58d7bf9a5efb7259745368c7d (diff) |
* lib/net/imap.rb (getacl_response): parse the mailbox of an ACL
response correctly. [ruby-core:54365] [Bug #8281]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/net/imap/test_imap_response_parser.rb')
-rw-r--r-- | test/net/imap/test_imap_response_parser.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/net/imap/test_imap_response_parser.rb b/test/net/imap/test_imap_response_parser.rb index 4062e1b9e7..c329f4285f 100644 --- a/test/net/imap/test_imap_response_parser.rb +++ b/test/net/imap/test_imap_response_parser.rb @@ -223,4 +223,18 @@ EOF assert_equal("7BIT", delivery_status.encoding) assert_equal(410, delivery_status.size) end + + # [Bug #8281] + def test_acl + parser = Net::IMAP::ResponseParser.new + response = parser.parse(<<EOF.gsub(/\n/, "\r\n").taint) +* ACL "INBOX/share" "[email protected]" lrswickxteda +EOF + assert_equal("ACL", response.name) + assert_equal(1, response.data.length) + assert_equal("INBOX/share", response.data[0].mailbox) + assert_equal("[email protected]", + response.data[0].user) + assert_equal("lrswickxteda", response.data[0].rights) + end end |