diff options
author | Evan Read <eread@gitlab.com> | 2022-08-17 09:08:59 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2022-08-17 09:08:59 +0300 |
commit | 5d0c4d71a474ff8e2337897f3e8ccabe7f09f582 (patch) | |
tree | 8487b3989e0d975e079cd55f01713d2d6199349a /spec/lib | |
parent | de36266f017679516b022ba11dc8d3bf0ec6a6cf (diff) |
Fix Lint/RedundantStringCoercion RuboCop offense
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/task_helpers_spec.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/spec/lib/task_helpers_spec.rb b/spec/lib/task_helpers_spec.rb new file mode 100644 index 00000000..5bf1a662 --- /dev/null +++ b/spec/lib/task_helpers_spec.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +require 'task_helpers' + +describe TaskHelpers do + describe '#chart_version' do + let(:gitlab_version) { nil } + + subject(:chart_version) { described_class.new.chart_version(gitlab_version) } + + context 'when GitLab version is 15' do + let(:gitlab_version) { '15.0' } + + it 'returns charts version 6.0' do + expect(chart_version).to eq('6.0') + end + end + end +end |