From 8777965d9e77d9689e76e1df878f1e7729347b63 Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Fri, 15 Mar 2024 11:25:57 +0100 Subject: [PATCH] Make the test suite compatible with --enable-frozen-string-literal Ref: https://bugs.ruby-lang.org/issues/20205 Since `net-smtp` is tested as part of ruby-core CI, it needs to be compatible with the `--enable-frozen-string-literal` option. --- 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 02f78dc..320e75d 100644 --- a/test/net/smtp/test_smtp.rb +++ b/test/net/smtp/test_smtp.rb @@ -672,7 +672,7 @@ def greeting end def ehlo(_) - res = ["220-servername\r\n"] + res = [+"220-servername\r\n"] @capa.each do |k, v| case v when nil, false