Fix task factory
This commit is contained in:
parent
139c513da6
commit
bc54300ce5
3 changed files with 6 additions and 3 deletions
|
@ -9,7 +9,7 @@
|
|||
# target_type :string not null
|
||||
# author_id :integer
|
||||
# note_id :integer
|
||||
# action :integer
|
||||
# action :integer not null
|
||||
# state :string not null
|
||||
# created_at :datetime
|
||||
# updated_at :datetime
|
||||
|
|
|
@ -8,7 +8,8 @@
|
|||
# target_id :integer not null
|
||||
# target_type :string not null
|
||||
# author_id :integer
|
||||
# action :integer
|
||||
# note_id :integer
|
||||
# action :integer not null
|
||||
# state :string not null
|
||||
# created_at :datetime
|
||||
# updated_at :datetime
|
||||
|
@ -19,6 +20,8 @@ FactoryGirl.define do
|
|||
project
|
||||
author
|
||||
user
|
||||
target factory: :issue
|
||||
action { Task::ASSIGNED }
|
||||
|
||||
trait :assigned do
|
||||
action { Task::ASSIGNED }
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
# target_type :string not null
|
||||
# author_id :integer
|
||||
# note_id :integer
|
||||
# action :integer
|
||||
# action :integer not null
|
||||
# state :string not null
|
||||
# created_at :datetime
|
||||
# updated_at :datetime
|
||||
|
|
Loading…
Reference in a new issue