diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-02-16 05:26:33 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-02-20 17:10:26 +0300 |
commit | e81061a211fedf9adaca8b053b6633988fdd5644 (patch) | |
tree | 4855440c7b31169eb2fc53ee8f80083cf21c8e26 /spec/factories | |
parent | 48ddf9a407e0f98949301de7a2cbd7d62f8a4e47 (diff) |
Marks pending tasks for an user as done when he edit an issue
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/tasks.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/factories/tasks.rb b/spec/factories/tasks.rb index cd04405774a..710b8324f1f 100644 --- a/spec/factories/tasks.rb +++ b/spec/factories/tasks.rb @@ -19,5 +19,15 @@ FactoryGirl.define do project author user + + factory :pending_assigned_task, traits: [:assgined, :pending] + + trait :assgined do + action { Task::ASSIGNED } + end + + trait :pending do + state { :pending } + end end end |