diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-26 06:08:40 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-26 06:08:40 +0000 |
commit | 116d4e56e83a1f408afe710ce070e699ba206475 (patch) | |
tree | cc62d3820d9bfa199061edfdef3a2f4bda140507 /spec/factories/ci | |
parent | dddde902acfa6acfb11583c61faa67cc7c8d11b6 (diff) | |
download | gitlab-ce-116d4e56e83a1f408afe710ce070e699ba206475.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories/ci')
-rw-r--r-- | spec/factories/ci/test_case.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/factories/ci/test_case.rb b/spec/factories/ci/test_case.rb index 8017111bcc7..ce6bd0f3d7d 100644 --- a/spec/factories/ci/test_case.rb +++ b/spec/factories/ci/test_case.rb @@ -9,6 +9,7 @@ FactoryBot.define do status { "success" } system_output { nil } attachment { nil } + association :job, factory: :ci_build trait :with_attachment do attachment { "some/path.png" } @@ -24,7 +25,8 @@ FactoryBot.define do execution_time: execution_time, status: status, system_output: system_output, - attachment: attachment + attachment: attachment, + job: job ) end end |