Port Milestone trait back used in EE

This commit is contained in:
Mark Chao 2018-08-03 21:50:17 +08:00
parent 35e029009d
commit 3b2da85073
1 changed files with 5 additions and 0 deletions

View File

@ -18,6 +18,11 @@ FactoryBot.define do
state "closed"
end
trait :with_dates do
start_date { Date.new(2000, 1, 1) }
due_date { Date.new(2000, 1, 30) }
end
after(:build, :stub) do |milestone, evaluator|
if evaluator.group
milestone.group = evaluator.group