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

import_common_metrics_spec.rb « migrations « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8c28b46cb388ead9d77d5baea55b2279dfb3eac7 (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 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