summaryrefslogtreecommitdiff
path: root/spec/db
diff options
context:
space:
mode:
authorRyan Cobb <rcobb@gitlab.com>2019-07-01 14:43:21 -0700
committerRyan Cobb <rcobb@gitlab.com>2019-07-09 17:02:08 -0600
commitab2a8e2ba839c92530838e2766ab6d8aa0228bda (patch)
treeac52ac44cdf1d8eba68538153bb5f54fb69e60bc /spec/db
parent9aad4174e052ba330fdaf4abc0276d8497c7de03 (diff)
downloadgitlab-ce-ab2a8e2ba839c92530838e2766ab6d8aa0228bda.tar.gz
Move importers to lib folder
This moves our metric importers into the lib folder. This will allow them to be autoloaded instead of having to explicitly require them.
Diffstat (limited to 'spec/db')
-rw-r--r--spec/db/importers/common_metrics_importer_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/db/importers/common_metrics_importer_spec.rb b/spec/db/importers/common_metrics_importer_spec.rb
index c47effa6803..02e7d51c268 100644
--- a/spec/db/importers/common_metrics_importer_spec.rb
+++ b/spec/db/importers/common_metrics_importer_spec.rb
@@ -3,7 +3,7 @@
require 'rails_helper'
require Rails.root.join("db", "importers", "common_metrics_importer.rb")
-describe Importers::CommonMetrics::PrometheusMetric do
+describe Gitlab::Importers::CommonMetrics::PrometheusMetric do
let(:existing_group_titles) do
::PrometheusMetricEnums.group_details.each_with_object({}) do |(key, value), memo|
memo[key] = value[:group_title]
@@ -15,7 +15,7 @@ describe Importers::CommonMetrics::PrometheusMetric do
end
it 'GROUP_TITLES equals ::PrometheusMetric' do
- expect(Importers::CommonMetrics::PrometheusMetricEnums.group_titles).to eq(existing_group_titles)
+ expect(Gitlab::Importers::CommonMetrics::PrometheusMetricEnums.group_titles).to eq(existing_group_titles)
end
end
@@ -104,7 +104,7 @@ describe Importers::CommonMetricsImporter do
let(:query_identifier) { }
it 'raises exception' do
- expect { subject.execute }.to raise_error(Importers::CommonMetrics::Importer::MissingQueryId)
+ expect { subject.execute }.to raise_error(Gitlab::Importers::CommonMetrics::Importer::MissingQueryId)
end
end