diff options
Diffstat (limited to 'spec/factories/milestones.rb')
-rw-r--r-- | spec/factories/milestones.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/factories/milestones.rb b/spec/factories/milestones.rb index e9e85962fe4..84da71ed6dc 100644 --- a/spec/factories/milestones.rb +++ b/spec/factories/milestones.rb @@ -3,10 +3,15 @@ FactoryGirl.define do title project + trait :active do + state "active" + end + trait :closed do - state :closed + state "closed" end + factory :active_milestone, traits: [:active] factory :closed_milestone, traits: [:closed] end end |