diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-24 00:07:31 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-24 00:07:31 +0000 |
commit | 3888bc4261500c275759683076e07baaf352e5ec (patch) | |
tree | eb70e0415be41a1d713cc89f211a6045778cd6b8 /spec/models/ci/build_spec.rb | |
parent | 33e1622bfe5afb2eea08ff06e44de490383a93e3 (diff) | |
download | gitlab-ce-3888bc4261500c275759683076e07baaf352e5ec.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/ci/build_spec.rb')
-rw-r--r-- | spec/models/ci/build_spec.rb | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/spec/models/ci/build_spec.rb b/spec/models/ci/build_spec.rb index ee8e9805c49..f9c17f732b6 100644 --- a/spec/models/ci/build_spec.rb +++ b/spec/models/ci/build_spec.rb @@ -2248,24 +2248,14 @@ describe Ci::Build do end end - describe '#has_expiring_archive_artifacts?' do + describe '#has_expiring_artifacts?' do context 'when artifacts have expiration date set' do before do build.update(artifacts_expire_at: 1.day.from_now) end - context 'and job artifacts file exists' do - let!(:archive) { create(:ci_job_artifact, :archive, job: build) } - - it 'has expiring artifacts' do - expect(build).to have_expiring_archive_artifacts - end - end - - context 'and job artifacts file does not exist' do - it 'does not have expiring artifacts' do - expect(build).not_to have_expiring_archive_artifacts - end + it 'has expiring artifacts' do + expect(build).to have_expiring_artifacts end end @@ -2275,7 +2265,7 @@ describe Ci::Build do end it 'does not have expiring artifacts' do - expect(build).not_to have_expiring_archive_artifacts + expect(build).not_to have_expiring_artifacts end end end |