2019-07-25 01:21:37 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-10-19 02:41:55 -04:00
|
|
|
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
|