mirror of https://github.com/rails/rails
Fix logger format with Ruby 3.1
This commit is contained in:
parent
b03e1586cd
commit
5f5bd542b3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue