Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarka Kadlecová <jarka@gitlab.com>2018-06-13 19:11:10 +0300
committerJarka Kadlecová <jarka@gitlab.com>2018-07-03 10:34:44 +0300
commit57a44f2da3d2a0b59209b6c2d653d04efd0d3d41 (patch)
tree37a3035e1f1411a16a989e8b22f20bb80c79cf6d /spec/factories
parent275fbf24b1810e2fbef92b6599d5372855b97b46 (diff)
Support todos for epics backport
Diffstat (limited to 'spec/factories')
-rw-r--r--spec/factories/todos.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/factories/todos.rb b/spec/factories/todos.rb
index 94f8caedfa6..484aabea4d0 100644
--- a/spec/factories/todos.rb
+++ b/spec/factories/todos.rb
@@ -1,8 +1,9 @@
FactoryBot.define do
factory :todo do
project
- author { project.creator }
- user { project.creator }
+ group
+ author { project&.creator || user }
+ user { project&.creator || user }
target factory: :issue
action { Todo::ASSIGNED }