2019-10-12 21:52:04 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe Gitlab::AppLogger, :request_store do
|
|
|
|
subject { described_class }
|
|
|
|
|
|
|
|
it 'builds a logger once' do
|
|
|
|
expect(::Logger).to receive(:new).and_call_original
|
|
|
|
|
|
|
|
subject.info('hello world')
|
|
|
|
subject.error('hello again')
|
|
|
|
end
|
|
|
|
end
|