summaryrefslogtreecommitdiff
path: root/spec/db/development/import_common_metrics_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/db/development/import_common_metrics_spec.rb')
-rw-r--r--spec/db/development/import_common_metrics_spec.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/db/development/import_common_metrics_spec.rb b/spec/db/development/import_common_metrics_spec.rb
new file mode 100644
index 00000000000..25061ef0887
--- /dev/null
+++ b/spec/db/development/import_common_metrics_spec.rb
@@ -0,0 +1,15 @@
+# frozen_string_literal: true
+
+require 'spec_helper'
+
+describe 'Import metrics on development seed' do
+ 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