lib/meibo/factory_bot/academic_session.rb in meibo-0.8.0 vs lib/meibo/factory_bot/academic_session.rb in meibo-0.9.0

- old
+ new

@@ -17,7 +17,11 @@ type { Meibo::AcademicSession::TYPES[:school_year] } start_date { Date.new(school_year, 4, 1).iso8601 } end_date { Date.new(school_year + 1, 3, 31).iso8601 } parent_sourced_id { parent&.sourced_id } school_year { today.year } + + trait :jp do + initialize_with { Meibo::JapanProfile::AcademicSession.new(**attributes) } + end end end