From 5f5bd542b3ad0e9eba69559f539ad6d7113e8e07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Mon, 20 Dec 2021 22:36:33 +0000 Subject: [PATCH] Fix logger format with Ruby 3.1 --- activesupport/test/clean_logger_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activesupport/test/clean_logger_test.rb b/activesupport/test/clean_logger_test.rb index 4e3e69b74e..afcd8c1268 100644 --- a/activesupport/test/clean_logger_test.rb +++ b/activesupport/test/clean_logger_test.rb @@ -20,7 +20,7 @@ class CleanLoggerTest < ActiveSupport::TestCase @logger.formatter.datetime_format = "%Y-%m-%d" @logger.debug "debug" assert_equal "%Y-%m-%d", @logger.formatter.datetime_format - assert_match(/D, \[\d\d\d\d-\d\d-\d\d#\d+\] DEBUG -- : debug/, @out.string) + assert_match(/D, \[\d\d\d\d-\d\d-\d\d[ ]?#\d+\] DEBUG -- : debug/, @out.string) end def test_nonstring_formatting