blob: 20390e6abd9f275bcaed6a493ab10f896697fbb8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Gitlab::Usage::Metrics::Instrumentations::OmniauthEnabledMetric, feature_category: :service_ping do
before do
allow(Gitlab::Auth).to receive(:omniauth_enabled?).and_return(expected_value)
end
[true, false].each do |setting|
context "when the setting is #{setting}" do
let(:expected_value) { setting }
it_behaves_like 'a correct instrumented metric value', { time_frame: 'none' }
end
end
end
|