diff options
author | Ryan Cobb <rcobb@gitlab.com> | 2019-07-10 00:31:28 +0300 |
---|---|---|
committer | Ryan Cobb <rcobb@gitlab.com> | 2019-07-10 02:02:08 +0300 |
commit | df8a56e630a4f4df93fbc54de938f31542539d31 (patch) | |
tree | dd995a9294569374fe48b244c972b0b5456100d9 /spec/lib | |
parent | 68b37a99f4032deb9b1f196451a09c051274480c (diff) |
Rename Gitlab::Importers module
In order to avoid confusion between Gitlab::Importers module and other
like named modules, this renamed it to Gitlab::DatabaseImporters.
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab/database_importers/common_metrics/importer_spec.rb (renamed from spec/lib/gitlab/importers/common_metrics/importer_spec.rb) | 4 | ||||
-rw-r--r-- | spec/lib/gitlab/database_importers/common_metrics/prometheus_metric_spec.rb (renamed from spec/lib/gitlab/importers/common_metrics/prometheus_metric_spec.rb) | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/lib/gitlab/importers/common_metrics/importer_spec.rb b/spec/lib/gitlab/database_importers/common_metrics/importer_spec.rb index 31745186a8d..57c8bafd488 100644 --- a/spec/lib/gitlab/importers/common_metrics/importer_spec.rb +++ b/spec/lib/gitlab/database_importers/common_metrics/importer_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -describe Gitlab::Importers::CommonMetrics::Importer do +describe Gitlab::DatabaseImporters::CommonMetrics::Importer do subject { described_class.new } context "does import common_metrics.yml" do @@ -87,7 +87,7 @@ describe Gitlab::Importers::CommonMetrics::Importer do let(:query_identifier) { } it 'raises exception' do - expect { subject.execute }.to raise_error(Gitlab::Importers::CommonMetrics::Importer::MissingQueryId) + expect { subject.execute }.to raise_error(Gitlab::DatabaseImporters::CommonMetrics::Importer::MissingQueryId) end end diff --git a/spec/lib/gitlab/importers/common_metrics/prometheus_metric_spec.rb b/spec/lib/gitlab/database_importers/common_metrics/prometheus_metric_spec.rb index 5ce0b0aff64..1103da72501 100644 --- a/spec/lib/gitlab/importers/common_metrics/prometheus_metric_spec.rb +++ b/spec/lib/gitlab/database_importers/common_metrics/prometheus_metric_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -describe Gitlab::Importers::CommonMetrics::PrometheusMetric do +describe Gitlab::DatabaseImporters::CommonMetrics::PrometheusMetric do let(:existing_group_titles) do ::PrometheusMetricEnums.group_details.each_with_object({}) do |(key, value), memo| memo[key] = value[:group_title] @@ -14,6 +14,6 @@ describe Gitlab::Importers::CommonMetrics::PrometheusMetric do end it '.group_titles equals ::PrometheusMetric' do - expect(Gitlab::Importers::CommonMetrics::PrometheusMetricEnums.group_titles).to eq(existing_group_titles) + expect(Gitlab::DatabaseImporters::CommonMetrics::PrometheusMetricEnums.group_titles).to eq(existing_group_titles) end end |