BigW Consortium Gitlab

milestones.rb 279 Bytes
Newer Older
1 2 3 4 5
FactoryGirl.define do
  factory :milestone do
    title
    project

6 7 8 9
    trait :active do
      state "active"
    end

10
    trait :closed do
11
      state "closed"
12 13
    end

14
    factory :active_milestone, traits: [:active]
15 16 17
    factory :closed_milestone, traits: [:closed]
  end
end