summaryrefslogtreecommitdiff
path: root/spec/factories
diff options
context:
space:
mode:
authorJacopo <beschi.jacopo@gmail.com>2017-01-28 23:39:24 +0100
committerJacopo <beschi.jacopo@gmail.com>2017-01-28 23:48:36 +0100
commite4029070a205351ca9677311c9675f4f933e8f45 (patch)
tree7750211d6c7281741117226a717c2b7cbf22eefc /spec/factories
parentb78d06b78143b16dccc5d5afaa8796473b68bea1 (diff)
downloadgitlab-ce-e4029070a205351ca9677311c9675f4f933e8f45.tar.gz
Filter todos by manual add
Added the option to filter todo by Added and Pipelines
Diffstat (limited to 'spec/factories')
-rw-r--r--spec/factories/todos.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/factories/todos.rb b/spec/factories/todos.rb
index 91d6f39a5bf..275561502cd 100644
--- a/spec/factories/todos.rb
+++ b/spec/factories/todos.rb
@@ -24,6 +24,10 @@ FactoryGirl.define do
target factory: :merge_request
end
+ trait :marked do
+ action { Todo::MARKED }
+ end
+
trait :approval_required do
action { Todo::APPROVAL_REQUIRED }
end