debian-mirror-gitlab/spec/migrations/import_common_metrics_spec.rb

17 lines
372 B
Ruby
Raw Normal View History

2018-11-20 20:47:30 +05:30
# frozen_string_literal: true
require 'spec_helper'
require Rails.root.join('db', 'migrate', '20180831164910_import_common_metrics.rb')
2020-04-08 14:13:33 +05:30
describe ImportCommonMetrics do
2018-11-20 20:47:30 +05:30
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