diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-01 03:10:27 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-01 03:10:27 +0300 |
commit | a149dffe2f221544ce239658e1e0fad06a2726a2 (patch) | |
tree | 87b71776b0ce5084235b0a26c2acf0fa1c910eee /spec/scripts | |
parent | 16776d7f4fdb0cef173fcebb189c53b5bc0ecd39 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/scripts')
-rw-r--r-- | spec/scripts/trigger-build_spec.rb | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/spec/scripts/trigger-build_spec.rb b/spec/scripts/trigger-build_spec.rb index 758336d251d..ac8e3c7797c 100644 --- a/spec/scripts/trigger-build_spec.rb +++ b/spec/scripts/trigger-build_spec.rb @@ -337,29 +337,6 @@ RSpec.describe Trigger do it 'sets GITLAB_ASSETS_TAG to CI_COMMIT_SHA' do expect(subject.variables['GITLAB_ASSETS_TAG']).to eq(env['CI_COMMIT_SHA']) end - - context 'when cached-assets-hash.txt does not exist' do - before do - expect(File).to receive(:exist?).with('cached-assets-hash.txt').and_return(false) - end - - it 'sets GITLAB_ASSETS_TAG to CI_COMMIT_SHA' do - expect(subject.variables['GITLAB_ASSETS_TAG']).to eq(env['CI_COMMIT_SHA']) - end - end - - context 'when cached-assets-hash.txt exists' do - before do - allow(File).to receive(:exist?).and_call_original - allow(File).to receive(:read).and_call_original - expect(File).to receive(:exist?).with('cached-assets-hash.txt').and_return(true) - expect(File).to receive(:read).with('cached-assets-hash.txt').and_return("42") - end - - it 'sets GITLAB_ASSETS_TAG to CI_COMMIT_SHA' do - expect(subject.variables['GITLAB_ASSETS_TAG']).to eq("assets-hash-42") - end - end end end |