summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2016-07-11 11:02:11 +0100
committerSean McGivern <sean@gitlab.com>2016-07-12 19:01:09 +0100
commitd957d5f1aa45d3a8474678e5439ccdc09a545482 (patch)
treea2de9685f2c15594c1bfa9dc6703d0c5b32c6558 /spec
parenteac0433f864b89a19bd3ca82afaf7957a9a3148f (diff)
downloadgitlab-ce-d957d5f1aa45d3a8474678e5439ccdc09a545482.tar.gz
Add approval required todosapproval-required-todo
Diffstat (limited to 'spec')
-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 7fc20cd5555..866e663f026 100644
--- a/spec/factories/todos.rb
+++ b/spec/factories/todos.rb
@@ -23,6 +23,10 @@ FactoryGirl.define do
action { Todo::BUILD_FAILED }
end
+ trait :approval_required do
+ action { Todo::APPROVAL_REQUIRED }
+ end
+
trait :done do
state :done
end