diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-24 03:07:31 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-24 03:07:31 +0300 |
commit | 3888bc4261500c275759683076e07baaf352e5ec (patch) | |
tree | eb70e0415be41a1d713cc89f211a6045778cd6b8 /spec/serializers/build_details_entity_spec.rb | |
parent | 33e1622bfe5afb2eea08ff06e44de490383a93e3 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/serializers/build_details_entity_spec.rb')
-rw-r--r-- | spec/serializers/build_details_entity_spec.rb | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/spec/serializers/build_details_entity_spec.rb b/spec/serializers/build_details_entity_spec.rb index 6fe9eaedfeb..91c5fd6bf2c 100644 --- a/spec/serializers/build_details_entity_spec.rb +++ b/spec/serializers/build_details_entity_spec.rb @@ -176,27 +176,5 @@ describe BuildDetailsEntity do expect(subject[:reports].first[:file_type]).to eq('codequality') end end - - context 'when the build has no archive type artifacts' do - let!(:report) { create(:ci_job_artifact, :codequality, job: build) } - - it 'does not expose any artifact actions path' do - expect(subject[:artifact].keys).not_to include(:download_path, :browse_path, :keep_path) - end - end - - context 'when the build has archive type artifacts' do - let!(:report) { create(:ci_job_artifact, :codequality, job: build) } - let!(:archive) { create(:ci_job_artifact, :archive, job: build) } - let!(:metadata) { create(:ci_job_artifact, :metadata, job: build) } - - before do - build.update(artifacts_expire_at: 7.days.from_now) - end - - it 'exposes artifact details' do - expect(subject[:artifact].keys).to include(:download_path, :browse_path, :keep_path, :expire_at, :expired) - end - end end end |