diff options
author | Evan Read <eread@gitlab.com> | 2023-11-22 04:48:40 +0300 |
---|---|---|
committer | Evan Read <eread@gitlab.com> | 2023-11-22 04:48:40 +0300 |
commit | 52f5d1f68dbe39657951cc7063c4c5c86fb75828 (patch) | |
tree | 6287731df24ca7ec4d23d166d927ee4679998747 | |
parent | 76a8b2db2dd4b5e82ebb48d32bceeb32e35c2e5b (diff) |
Fix test by avoiding setting environment variable globallyaxil-version-prefix-build-time
-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' } |