Fix task factory

This commit is contained in:
Douglas Barbosa Alexandre 2016-02-18 11:51:53 -02:00
parent 139c513da6
commit bc54300ce5
3 changed files with 6 additions and 3 deletions

View file

@ -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

View file

@ -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 }

View file

@ -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