diff options
author | Ryan Cobb <rcobb@gitlab.com> | 2019-07-09 16:34:26 -0600 |
---|---|---|
committer | Ryan Cobb <rcobb@gitlab.com> | 2019-07-09 17:02:08 -0600 |
commit | 468b8069021216afd9b2e7254fe9c2bc3a5e32e5 (patch) | |
tree | 28520fcae4fcd5f57584fbd32ab46ae163b559df /spec/lib | |
parent | a0c16db70d9bc663a6a463f4cecd81372b0758b5 (diff) | |
download | gitlab-ce-468b8069021216afd9b2e7254fe9c2bc3a5e32e5.tar.gz |
Remove unnecessary let in spec63044-cluster-health-group-refactor
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab/database_importers/common_metrics/prometheus_metric_spec.rb | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/spec/lib/gitlab/database_importers/common_metrics/prometheus_metric_spec.rb b/spec/lib/gitlab/database_importers/common_metrics/prometheus_metric_spec.rb index 1103da72501..94f544e59b3 100644 --- a/spec/lib/gitlab/database_importers/common_metrics/prometheus_metric_spec.rb +++ b/spec/lib/gitlab/database_importers/common_metrics/prometheus_metric_spec.rb @@ -3,17 +3,14 @@ require 'rails_helper' 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] - end - end - it 'group enum equals ::PrometheusMetric' do expect(described_class.groups).to eq(::PrometheusMetric.groups) end it '.group_titles equals ::PrometheusMetric' do + existing_group_titles = ::PrometheusMetricEnums.group_details.each_with_object({}) do |(key, value), memo| + memo[key] = value[:group_title] + end expect(Gitlab::DatabaseImporters::CommonMetrics::PrometheusMetricEnums.group_titles).to eq(existing_group_titles) end end |