summaryrefslogtreecommitdiff
path: root/spec/db/production/import_common_metrics_spec.rb
blob: 1e4ff818a8621ed80419f5dc0db5226935194170 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

require 'spec_helper'

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