diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2017-06-09 00:59:50 +0200 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2017-07-06 12:01:36 +0200 |
commit | 6f1e00ea36bdcc39da955f7aa2add6a21432d190 (patch) | |
tree | 1a0efe88fa337f96973e3499e7f75178ec4450d1 | |
parent | 8fbbf41e29f5e0f56b7eb9d37aadba856b68bcce (diff) | |
download | gitlab-ce-6f1e00ea36bdcc39da955f7aa2add6a21432d190.tar.gz |
Update CI runner factories to not use invalid IDs
These IDs point to non-existing rows, causing the foreign key
constraints to fail.
-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 |