summaryrefslogtreecommitdiff
path: root/spec/factories/milestones.rb
blob: 84da71ed6dcce196a759e92d6e14fd73911a874a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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