diff options
-rw-r--r-- | spec/lib/task_helpers_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/lib/task_helpers_spec.rb b/spec/lib/task_helpers_spec.rb index cca9ac69..2281bdf5 100644 --- a/spec/lib/task_helpers_spec.rb +++ b/spec/lib/task_helpers_spec.rb @@ -17,7 +17,9 @@ describe TaskHelpers do subject(:charts_stable_branch) { described_class.new.charts_stable_branch } context 'when GitLab version is 15-0-stable' do - ENV['CI_COMMIT_REF_NAME'] = '15.0' + before do + stub_const('ENV', { 'CI_COMMIT_REF_NAME' => '15.0' }) + end let(:stable_branch_name) { '15-0-stable' } |