Skip to content

Commit

Permalink
Add test for bad challenge
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu authored and nevans committed Jul 26, 2023
1 parent b5642d0 commit 63ebe2f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/net/imap/test_imap_authenticators.rb
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,11 @@ def test_digest_md5_authenticator
)
)
end

def test_digest_md5_authenticator_garbage
auth = digest_md5("user", "pass")
assert_raise(Net::IMAP::DataFormatError) do
auth.process('.')
end
end
end

0 comments on commit 63ebe2f

Please sign in to comment.