summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-04-07 00:19:17 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-04-07 00:19:17 +0000
commit75b46eb33cd5dd542c69919a8bd5338933b79ecb (patch)
treea0704c082e4c474a8d65553c73b0bbd6808e41ba /spec
parentea3f6d2444fd63f0ccaa0707d0ccbc59ec9af040 (diff)
downloadgitlab-ce-75b46eb33cd5dd542c69919a8bd5338933b79ecb.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/gitlab/app_logger_spec.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/lib/gitlab/app_logger_spec.rb b/spec/lib/gitlab/app_logger_spec.rb
index 66bdc204339..149c3d1f19f 100644
--- a/spec/lib/gitlab/app_logger_spec.rb
+++ b/spec/lib/gitlab/app_logger_spec.rb
@@ -2,11 +2,12 @@
require 'spec_helper'
-RSpec.describe Gitlab::AppLogger do
+RSpec.describe Gitlab::AppLogger, feature_category: :shared do
subject { described_class }
- it 'logs info to only the AppJsonLogger when unstructured logs are disabled' do
- expect_any_instance_of(Gitlab::AppTextLogger).not_to receive(:info).and_call_original
+ 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!')