15 lines
392 B
Ruby
15 lines
392 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_helper'
|
|
|
|
RSpec.describe Gitlab::AppLogger, feature_category: :shared do
|
|
subject { described_class }
|
|
|
|
specify { expect(described_class.primary_logger).to be Gitlab::AppJsonLogger }
|
|
|
|
it 'logs to AppJsonLogger' do
|
|
expect_any_instance_of(Gitlab::AppJsonLogger).to receive(:info).and_call_original
|
|
|
|
subject.info('Hello World!')
|
|
end
|
|
end
|