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:
parent
68a2b57e28
commit
ebd2a19251
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user