debian-mirror-gitlab/spec/factories/milestones.rb

18 lines
279 B
Ruby
Raw Normal View History

2016-06-02 11:05:42 +05:30
FactoryGirl.define do
factory :milestone do
title
project
2016-11-03 12:29:30 +05:30
trait :active do
state "active"
end
2016-06-02 11:05:42 +05:30
trait :closed do
2016-11-03 12:29:30 +05:30
state "closed"
2016-06-02 11:05:42 +05:30
end
2016-11-03 12:29:30 +05:30
factory :active_milestone, traits: [:active]
2016-06-02 11:05:42 +05:30
factory :closed_milestone, traits: [:closed]
end
end