diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-11-02 14:16:50 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-12-03 14:04:48 +0300 |
commit | 303f165cbae8367c19ea273fc52170c2a354a8d6 (patch) | |
tree | 169d40f5e4f7b31b0f74be2500cfc87601c93c42 /spec/factories/ci/builds.rb | |
parent | 61864a5a5bb523953589c9398a431c4369fbfc76 (diff) |
Fix creation of job_artifact_uploader
Diffstat (limited to 'spec/factories/ci/builds.rb')
-rw-r--r-- | spec/factories/ci/builds.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/factories/ci/builds.rb b/spec/factories/ci/builds.rb index 6cb612a58d2..ee449bfe5db 100644 --- a/spec/factories/ci/builds.rb +++ b/spec/factories/ci/builds.rb @@ -155,8 +155,10 @@ FactoryGirl.define do end trait :artifacts do - job_archive factory: :ci_job_artifact - job_metadata factory: :ci_job_metadata + after(:create) do |build| + create(:ci_job_artifact, job: build) + create(:ci_job_metadata, job: build) + end end trait :expired do |