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

import_common_metrics_spec.rb « development « db « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 396eae9293e7848c630cf38a362f9f3062bbde42 (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 development seed' do
  subject { load Rails.root.join('db', 'fixtures', 'development', '99_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