mirror of
https://github.com/meineerde/rackstash.git
synced 2025-12-19 15:01:12 +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
|
expect(messages.last).to include severity: 5
|
||||||
end
|
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
|
it 'calls the block if message is nil' do
|
||||||
temp = 0
|
temp = 0
|
||||||
expect do
|
expect do
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user