Fix logger format with Ruby 3.1

This commit is contained in:
Rafael Mendonça França 2021-12-20 22:36:33 +00:00
parent b03e1586cd
commit 5f5bd542b3
No known key found for this signature in database
GPG Key ID: FC23B6D0F1EEE948
1 changed files with 1 additions and 1 deletions

View File

@ -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