summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/usage/metrics/instrumentations/collected_data_categories_metric_spec.rb
blob: 92d4de3c462e3ed4b49b9f40159729666c2eb125 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Gitlab::Usage::Metrics::Instrumentations::CollectedDataCategoriesMetric do
  it_behaves_like 'a correct instrumented metric value', {} do
    let(:expected_value) { %w[standard subscription operational optional] }

    before do
      allow_next_instance_of(ServicePing::PermitDataCategories) do |instance|
        expect(instance).to receive(:execute).and_return(expected_value)
      end
    end
  end
end