summaryrefslogtreecommitdiff
path: root/spec/factories/todos.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/factories/todos.rb')
-rw-r--r--spec/factories/todos.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/factories/todos.rb b/spec/factories/todos.rb
index 082b02116c0..91d6f39a5bf 100644
--- a/spec/factories/todos.rb
+++ b/spec/factories/todos.rb
@@ -1,6 +1,6 @@
FactoryGirl.define do
factory :todo do
- project
+ project factory: :empty_project
author
user
target factory: :issue
@@ -28,6 +28,10 @@ FactoryGirl.define do
action { Todo::APPROVAL_REQUIRED }
end
+ trait :unmergeable do
+ action { Todo::UNMERGEABLE }
+ end
+
trait :done do
state :done
end