diff options
author | Dan Rowden <hello@danrowden.com> | 2016-07-26 00:23:27 +0300 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-09-07 23:27:14 +0300 |
commit | da7c14442cc97e1ecd4c34ab2ef9bf2662ea241d (patch) | |
tree | 8a4ac4a1de59de10e9b1721a9399a10d992529c8 /spec/factories | |
parent | c1f508b0b10965f9827a9e6bd564e9c0fd00f595 (diff) |
Updated milestone count helper plus tests
Diffstat (limited to 'spec/factories')
-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 |