Skip to content

Commit

Permalink
Update tests referencing severity numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
kaylareopelle committed Apr 15, 2024
1 parent 97ea4c9 commit f7646f8
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,13 @@
end

it 'turns the severity into a number' do
assert_equal(Logger::Severity::DEBUG, 0)
ruby_logger.debug(msg)
assert_equal(0, log_record.severity_number)
assert_equal(5, log_record.severity_number)
end

it 'safely handles unknown severity number translations' do
ruby_logger.send(:format_message, 'CUSTOM_SEVERITY', Time.now, nil, msg)
assert_nil(log_record.severity_number)
assert_equal(0, log_record.severity_number)
end
end
end

0 comments on commit f7646f8

Please sign in to comment.