diff options
Diffstat (limited to 'spec/migrations/import_common_metrics_spec.rb')
-rw-r--r-- | spec/migrations/import_common_metrics_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/migrations/import_common_metrics_spec.rb b/spec/migrations/import_common_metrics_spec.rb new file mode 100644 index 00000000000..83ecb39a6ee --- /dev/null +++ b/spec/migrations/import_common_metrics_spec.rb @@ -0,0 +1,14 @@ +require 'spec_helper' +require Rails.root.join('db', 'migrate', '20180831164909_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 |