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
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2023-01-17 23:30:25 +0300
committerSarah German <sgerman@gitlab.com>2023-01-17 23:30:25 +0300
commitc07878657b7b8eff9181bcb719f69840db2018d7 (patch)
tree4a0468be3b612b39516213aa3c93cb765fe0b548 /spec
parent07eddffe2541f8d3eca9e9eed11fce940e464d46 (diff)
Check the target branch when pulling upstream projects
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/task_helpers_spec.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/lib/task_helpers_spec.rb b/spec/lib/task_helpers_spec.rb
index 2a5ada7e..3ccd87a6 100644
--- a/spec/lib/task_helpers_spec.rb
+++ b/spec/lib/task_helpers_spec.rb
@@ -13,16 +13,16 @@ describe TaskHelpers do
end
end
- describe '#chart_version' do
- let(:gitlab_version) { nil }
+ describe '#charts_stable_branch' do
+ subject(:charts_stable_branch) { described_class.new.charts_stable_branch }
- subject(:chart_version) { described_class.new.chart_version(gitlab_version) }
+ context 'when GitLab version is 15-0-stable' do
+ ENV['CI_COMMIT_REF_NAME'] = '15.0'
- context 'when GitLab version is 15' do
- let(:gitlab_version) { '15.0' }
+ let(:stable_branch_name) { '15-0-stable' }
- it 'returns charts version 6.0' do
- expect(chart_version).to eq('6.0')
+ it 'returns charts branch 6-0-stable' do
+ expect(charts_stable_branch).to eq('6-0-stable')
end
end
end