debian-mirror-gitlab/spec/lib/gitlab/app_logger_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
392 B
Ruby
Raw Normal View History

2019-10-12 21:52:04 +05:30
# frozen_string_literal: true
2018-03-17 18:26:18 +05:30
require 'spec_helper'
2023-06-20 00:43:36 +05:30
RSpec.describe Gitlab::AppLogger, feature_category: :shared do
2018-03-17 18:26:18 +05:30
subject { described_class }
2023-06-20 00:43:36 +05:30
specify { expect(described_class.primary_logger).to be Gitlab::AppJsonLogger }
2023-07-09 08:55:56 +05:30
it 'logs to AppJsonLogger' do
expect_any_instance_of(Gitlab::AppJsonLogger).to receive(:info).and_call_original
2018-03-17 18:26:18 +05:30
2023-07-09 08:55:56 +05:30
subject.info('Hello World!')
2020-10-24 23:57:45 +05:30
end
2018-03-17 18:26:18 +05:30
end