diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2017-06-09 01:59:50 +0300 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2017-07-06 13:01:36 +0300 |
commit | 6f1e00ea36bdcc39da955f7aa2add6a21432d190 (patch) | |
tree | 1a0efe88fa337f96973e3499e7f75178ec4450d1 /spec/factories | |
parent | 8fbbf41e29f5e0f56b7eb9d37aadba856b68bcce (diff) |
Update CI runner factories to not use invalid IDs
These IDs point to non-existing rows, causing the foreign key
constraints to fail.
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/ci/runner_projects.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/factories/ci/runner_projects.rb b/spec/factories/ci/runner_projects.rb index 6712dd5d82e..33a17cf7ed5 100644 --- a/spec/factories/ci/runner_projects.rb +++ b/spec/factories/ci/runner_projects.rb @@ -1,6 +1,6 @@ FactoryGirl.define do factory :ci_runner_project, class: Ci::RunnerProject do - runner_id 1 - project_id 1 + runner factory: :ci_runner + project factory: :empty_project end end |