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

require 'spec_helper'
require Rails.root.join('db', 'migrate', '20180831164910_import_common_metrics.rb')

describe ImportCommonMetrics, :migration do
  describe '#up' do
    it "imports all prometheus metrics" do
      expect(PrometheusMetric.common).to be_empty

      migrate!

      expect(PrometheusMetric.common).not_to be_empty
    end
  end
end