Commit ec0e2715 authored by Luis Mejia's avatar Luis Mejia

Fix rubocop errors

parent 7a70566a
...@@ -60,11 +60,7 @@ module Gitlab ...@@ -60,11 +60,7 @@ module Gitlab
end end
def tier def tier
value = if ee? value = ee? ? ['#- premium'] : ['- free', '- premium']
['#- premium']
else
['- free', '- premium']
end
value << '- ultimate' value << '- ultimate'
value.join("\n") value.join("\n")
end end
......
...@@ -33,7 +33,7 @@ RSpec.describe Gitlab::UsageMetricDefinitionGenerator do ...@@ -33,7 +33,7 @@ RSpec.describe Gitlab::UsageMetricDefinitionGenerator do
let(:metric_definition_path) { Dir.glob(File.join(temp_dir, 'metrics/counts_7d/*_test_metric.yml')).first } let(:metric_definition_path) { Dir.glob(File.join(temp_dir, 'metrics/counts_7d/*_test_metric.yml')).first }
it 'creates a metric definition file using the template' do it 'creates a metric definition file using the template' do
described_class.new([key_path], { 'dir' => dir}).invoke_all described_class.new([key_path], { 'dir' => dir }).invoke_all
expect(YAML.safe_load(File.read(metric_definition_path))).to eq(sample_metric) expect(YAML.safe_load(File.read(metric_definition_path))).to eq(sample_metric)
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment