Skip to content

Commit 2024f3a

Browse files
committed
Add test for bad challenge
1 parent 16dafde commit 2024f3a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/net/imap/test_imap_authenticators.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,11 @@ def test_digest_md5_authenticator
139139
)
140140
)
141141
end
142+
143+
def test_digest_md5_authenticator_garbage
144+
auth = digest_md5("user", "pass")
145+
assert_raise(Net::IMAP::DataFormatError) do
146+
auth.process('.')
147+
end
148+
end
142149
end

0 commit comments

Comments
 (0)