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

- old
+ new

@@ -15,7 +15,11 @@ sourced_id { SecureRandom.uuid } school_year_sourced_id { school_year&.sourced_id } title { "#{school_year&.title}ホームルーム" } course_code { '' } org_sourced_id { organization&.sourced_id } + + trait :jp do + initialize_with { Meibo::JapanProfile::Course.new(**attributes) } + end end end