summaryrefslogtreecommitdiff
path: root/spec/models/project_statistics_spec.rb
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2017-11-23 18:51:20 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2017-12-03 12:04:49 +0100
commit38c61ab6df15fbd1eab22a8dff8da01b17c075f3 (patch)
treec0df50ea346d5ab5f9b21951b9fc746869a44612 /spec/models/project_statistics_spec.rb
parent871de0f18581bb03fed5c0d800f8183598a0195f (diff)
downloadgitlab-ce-38c61ab6df15fbd1eab22a8dff8da01b17c075f3.tar.gz
Fix specs failures, and use factory with `:ci_job_artifact, :archive`
Diffstat (limited to 'spec/models/project_statistics_spec.rb')
-rw-r--r--spec/models/project_statistics_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/project_statistics_spec.rb b/spec/models/project_statistics_spec.rb
index 95e8d519bdd..4496f91fc5e 100644
--- a/spec/models/project_statistics_spec.rb
+++ b/spec/models/project_statistics_spec.rb
@@ -137,7 +137,7 @@ describe ProjectStatistics do
before do
create(:ci_build, pipeline: pipeline, artifacts_size: 56.megabytes)
- create(:ci_job_artifact, project: pipeline.project, job: ci_build)
+ create(:ci_job_artifact, :archive, project: pipeline.project, job: ci_build)
statistics.update_build_artifacts_size
end