diff options
Diffstat (limited to 'spec/factories/todos.rb')
-rw-r--r-- | spec/factories/todos.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/factories/todos.rb b/spec/factories/todos.rb index c1ac3bb84ad..94f8caedfa6 100644 --- a/spec/factories/todos.rb +++ b/spec/factories/todos.rb @@ -1,8 +1,8 @@ -FactoryGirl.define do +FactoryBot.define do factory :todo do - project factory: :empty_project - author - user + project + author { project.creator } + user { project.creator } target factory: :issue action { Todo::ASSIGNED } @@ -45,7 +45,7 @@ FactoryGirl.define do end factory :on_commit_todo, class: Todo do - project factory: :empty_project + project author user action { Todo::ASSIGNED } |