diff options
Diffstat (limited to 'spec/factories/ci/pipeline_artifacts.rb')
-rw-r--r-- | spec/factories/ci/pipeline_artifacts.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/factories/ci/pipeline_artifacts.rb b/spec/factories/ci/pipeline_artifacts.rb index d3f3f9e92ac..ecfd1e79e78 100644 --- a/spec/factories/ci/pipeline_artifacts.rb +++ b/spec/factories/ci/pipeline_artifacts.rb @@ -8,5 +8,10 @@ FactoryBot.define do file_format { :raw } file_store { Ci::PipelineArtifact::FILE_STORE_SUPPORTED.first } size { 1.megabytes } + + after(:build) do |artifact, _evaluator| + artifact.file = fixture_file_upload( + Rails.root.join('spec/fixtures/pipeline_artifacts/code_coverage.json'), 'application/json') + end end end |