diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-04-23 15:08:07 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-04-23 15:08:07 +0200 |
commit | 70427de8d5fe07927c467b8a44f7b3e9edf39021 (patch) | |
tree | 2a460f8d472003a8768e19aa2e954d4309a6924d | |
parent | 5cecb2ba410de7b37cf5f12fbd08e80f538e21e1 (diff) | |
download | gitlab-ce-70427de8d5fe07927c467b8a44f7b3e9edf39021.tar.gz |
Remove a test case that has been incorrectly picked
-rw-r--r-- | spec/models/ci/job_artifact_spec.rb | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/spec/models/ci/job_artifact_spec.rb b/spec/models/ci/job_artifact_spec.rb index 817b74ad07a..729932a4710 100644 --- a/spec/models/ci/job_artifact_spec.rb +++ b/spec/models/ci/job_artifact_spec.rb @@ -119,34 +119,6 @@ describe Ci::JobArtifact do end end - context 'when destroying the artifact' do - let(:project) { create(:project, :repository) } - let(:pipeline) { create(:ci_pipeline, project: project) } - let!(:build) { create(:ci_build, :artifacts, pipeline: pipeline) } - - it 'updates the project statistics' do - artifact = build.job_artifacts.first - - expect(ProjectStatistics) - .to receive(:increment_statistic) - .and_call_original - - expect { artifact.destroy } - .to change { project.statistics.reload.build_artifacts_size } - .by(-106365) - end - - context 'when it is destroyed from the project level' do - it 'does not update the project statistics' do - expect(ProjectStatistics) - .not_to receive(:increment_statistic) - - project.update_attributes(pending_delete: true) - project.destroy! - end - end - end - describe 'file is being stored' do subject { create(:ci_job_artifact, :archive) } |