gitlab-org--gitlab-foss/spec/factories/milestones.rb
2016-09-07 15:27:14 -05:00

17 lines
279 B
Ruby

FactoryGirl.define do
factory :milestone do
title
project
trait :active do
state "active"
end
trait :closed do
state "closed"
end
factory :active_milestone, traits: [:active]
factory :closed_milestone, traits: [:closed]
end
end