spec/formatters/bunyan_spec.rb in ougai-1.5.5 vs spec/formatters/bunyan_spec.rb in ougai-1.5.6
- old
+ new
@@ -18,9 +18,18 @@
}
end
let(:formatter) { described_class.new }
+ context '#initialize' do
+ let(:appname) { 'dummy app name' }
+
+ it 'suceeds with arguments' do
+ fmt = described_class.new(appname)
+ expect(fmt.app_name).to eq(appname)
+ end
+ end
+
context 'jsonize is true and with_newline is true' do
subject { formatter.call('DEBUG', Time.now, nil, data) }
it 'includes valid strings' do
expect(subject).to end_with("\n")