spec/logger_spec.rb in ougai-1.5.2 vs spec/logger_spec.rb in ougai-1.5.3
- old
+ new
@@ -228,9 +228,16 @@
expect(item).to be_log_message(log_msg, log_level)
expect(item).to include_error('errmsg')
expect(item).to include_data(something: { name: 'foo' })
end
end
+
+ context 'without arguments' do
+ it 'outputs only default message' do
+ logger.send(method)
+ expect(item).to be_log_message('No message', log_level)
+ end
+ end
end
describe '#trace' do
let(:log_level) { 10 }
let(:log_msg) { 'trace message' }