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

import_common_metrics_spec.rb « production « db « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1cc0c2fd77fe9693ad7f3678801e2d72b56f7ecb (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 'Import metrics on production seed' do
  subject { load Rails.root.join('db', 'fixtures', 'production', '999_common_metrics.rb') }

  it "imports all prometheus metrics" do
    expect(PrometheusMetric.common).to be_empty

    subject

    expect(PrometheusMetric.common).not_to be_empty
  end
end