FactoryBot.define do factory :lookahead_plan_history, class: Ecom::Core::LookaheadPlanHistory do association :lookahead_plan association :task start_date { Time.now } end_date { Time.now + 2.day } lookahead_plan_revision_number { 1 } end end