spec/logger_spec.rb in ougai-1.8.1 vs spec/logger_spec.rb in ougai-1.8.2
- old
+ new
@@ -643,10 +643,10 @@
expect(another_item).to be_log_message(log_msg, 30)
expect(another_item).to include_data(foo: 2)
end
it 'outputs info log with block on both loggers' do
- logger.info(log_msg, foo: 2)
+ logger.info { [log_msg, { foo: 2 }] }
expect(item).to be_log_message(log_msg, 30)
expect(item).to include_data(foo: 2)
expect(another_item).to be_log_message(log_msg, 30)
expect(another_item).to include_data(foo: 2)
end