2018-09-05 10:55:56 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-03 14:08:28 -04:00
|
|
|
RSpec.describe 'Import metrics on development seed' do
|
2018-09-05 10:55:56 -04:00
|
|
|
subject { load Rails.root.join('db', 'fixtures', 'development', '99_common_metrics.rb') }
|
|
|
|
|
|
|
|
it "imports all prometheus metrics" do
|
|
|
|
expect(PrometheusMetric.common).to be_empty
|
|
|
|
|
|
|
|
subject
|
|
|
|
|
|
|
|
expect(PrometheusMetric.common).not_to be_empty
|
|
|
|
end
|
|
|
|
end
|