2018-09-04 09:42:58 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-08-31 16:53:50 +00:00
|
|
|
require 'spec_helper'
|
2018-09-05 21:40:54 +00:00
|
|
|
require Rails.root.join('db', 'migrate', '20180831164910_import_common_metrics.rb')
|
2018-08-31 16:53:50 +00:00
|
|
|
|
2020-03-11 21:09:19 +00:00
|
|
|
describe ImportCommonMetrics do
|
2018-08-31 16:53:50 +00:00
|
|
|
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
|