debian-mirror-gitlab/spec/lib/gitlab/app_logger_spec.rb
2023-07-09 08:55:56 +05:30

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