Welcome to mirror list, hosted at ThFree Co, Russian Federation.

collected_data_categories_metric_spec.rb « instrumentations « metrics « usage « gitlab « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1b2170baf174269a73add9225058302ece16f802 (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::PermitDataCategoriesService) do |instance|
        expect(instance).to receive(:execute).and_return(expected_value)
      end
    end
  end
end