summaryrefslogtreecommitdiff
path: root/spec/factories/milestones.rb
blob: e9e85962fe4e6d30b5cfdfed3f8a6e8b767e1df5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
FactoryGirl.define do
  factory :milestone do
    title
    project

    trait :closed do
      state :closed
    end

    factory :closed_milestone, traits: [:closed]
  end
end