Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec/lib
diff options
context:
space:
mode:
authorEvan Read <eread@gitlab.com>2022-08-17 09:08:59 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2022-08-17 09:08:59 +0300
commit5d0c4d71a474ff8e2337897f3e8ccabe7f09f582 (patch)
tree8487b3989e0d975e079cd55f01713d2d6199349a /spec/lib
parentde36266f017679516b022ba11dc8d3bf0ec6a6cf (diff)
Fix Lint/RedundantStringCoercion RuboCop offense
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/task_helpers_spec.rb19
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