diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-02-18 11:51:53 -0200 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-02-20 12:12:05 -0200 |
commit | bc54300ce5329b66d0ba726f814d9e761e782668 (patch) | |
tree | b239efa220ef576267216064026fcf6dd5cc6aab /spec | |
parent | 139c513da609d2def0d4122789e94fe29b557e67 (diff) | |
download | gitlab-ce-bc54300ce5329b66d0ba726f814d9e761e782668.tar.gz |
Fix task factory
Diffstat (limited to 'spec')
-rw-r--r-- | spec/factories/tasks.rb | 5 | ||||
-rw-r--r-- | spec/models/task_spec.rb | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/spec/factories/tasks.rb b/spec/factories/tasks.rb index b31db8a7d8b..4df489fa4c9 100644 --- a/spec/factories/tasks.rb +++ b/spec/factories/tasks.rb @@ -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 } diff --git a/spec/models/task_spec.rb b/spec/models/task_spec.rb index 2871e02aa4d..916f618471f 100644 --- a/spec/models/task_spec.rb +++ b/spec/models/task_spec.rb @@ -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 |