summaryrefslogtreecommitdiff
path: root/spec/factories.rb
diff options
context:
space:
mode:
authorAndrew8xx8 <avk@8xx8.ru>2013-02-18 13:38:29 +0400
committerAndrew8xx8 <avk@8xx8.ru>2013-02-18 14:43:50 +0400
commitb607c70e8fc53adfd3472c98f573bf96d903b822 (patch)
treebad71a109ce90a980b593a46cf20813e0e2a84fa /spec/factories.rb
parent0b4f4fe157828430eb7b7a0d88c022d72fa01637 (diff)
downloadgitlab-ce-b607c70e8fc53adfd3472c98f573bf96d903b822.tar.gz
Additional tests added to Milestone
Diffstat (limited to 'spec/factories.rb')
-rw-r--r--spec/factories.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/factories.rb b/spec/factories.rb
index 3f357b79496..74fcd111883 100644
--- a/spec/factories.rb
+++ b/spec/factories.rb
@@ -163,6 +163,12 @@ FactoryGirl.define do
factory :milestone do
title
project
+
+ trait :closed do
+ state :closed
+ end
+
+ factory :closed_milestone, traits: [:closed]
end
factory :system_hook do