From 3d1423249940a88736d60987621e5eff0a153d29 Mon Sep 17 00:00:00 2001 From: nick evans Date: Mon, 9 Oct 2023 13:20:12 -0400 Subject: [PATCH] Allow case-insensitive strings for SASL mechanism In particular, this erases the difference between :scram_sha_256 (the Net::SMTP authtype) and "SCRAM-SHA-256" (the SASL mechanism). --- test/net/smtp/test_smtp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/net/smtp/test_smtp.rb b/test/net/smtp/test_smtp.rb index 7a08ad9..a4450b3 100644 --- a/test/net/smtp/test_smtp.rb +++ b/test/net/smtp/test_smtp.rb @@ -456,7 +456,7 @@ def test_start_auth_plain Net::SMTP.start('localhost', port, user: 'account', password: 'password', authtype: :plain){} port = fake_server_start(auth: 'plain') - Net::SMTP.start('localhost', port, authtype: :plain, + Net::SMTP.start('localhost', port, authtype: "PLAIN", auth: {username: 'account', password: 'password'}){} port = fake_server_start(auth: 'plain')