Fix task factory

parent 139c513d
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
# target_type :string not null # target_type :string not null
# author_id :integer # author_id :integer
# note_id :integer # note_id :integer
# action :integer # action :integer not null
# state :string not null # state :string not null
# created_at :datetime # created_at :datetime
# updated_at :datetime # updated_at :datetime
......
...@@ -8,7 +8,8 @@ ...@@ -8,7 +8,8 @@
# target_id :integer not null # target_id :integer not null
# target_type :string not null # target_type :string not null
# author_id :integer # author_id :integer
# action :integer # note_id :integer
# action :integer not null
# state :string not null # state :string not null
# created_at :datetime # created_at :datetime
# updated_at :datetime # updated_at :datetime
...@@ -19,6 +20,8 @@ FactoryGirl.define do ...@@ -19,6 +20,8 @@ FactoryGirl.define do
project project
author author
user user
target factory: :issue
action { Task::ASSIGNED }
trait :assigned do trait :assigned do
action { Task::ASSIGNED } action { Task::ASSIGNED }
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
# target_type :string not null # target_type :string not null
# author_id :integer # author_id :integer
# note_id :integer # note_id :integer
# action :integer # action :integer not null
# state :string not null # state :string not null
# created_at :datetime # created_at :datetime
# updated_at :datetime # updated_at :datetime
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment