1
0
mirror of https://github.com/meineerde/rackstash.git synced 2025-10-17 14:01:01 +00:00

Test that Logger#add sets the current formatter on the message

This commit is contained in:
Holger Just 2017-02-09 23:31:48 +01:00
parent 68a2b57e28
commit ebd2a19251

View File

@ -201,6 +201,11 @@ describe Rackstash::Logger do
expect(messages.last).to include severity: 5
end
it 'adds the current formatter to the message' do
logger.add(0, 'test')
expect(messages.last).to include formatter: logger.formatter
end
it 'calls the block if message is nil' do
temp = 0
expect do