debian-mirror-gitlab/spec/factories/milestones.rb
2017-08-17 22:00:37 +05:30

17 lines
303 B
Ruby

FactoryGirl.define do
factory :milestone do
title
project factory: :empty_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