gitlab-org--gitlab-foss/spec/migrations/import_common_metrics_spec.rb

17 lines
384 B
Ruby
Raw Normal View History

2018-09-04 05:42:58 -04:00
# frozen_string_literal: true
require 'spec_helper'
2018-09-05 17:40:54 -04:00
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