lib/meibo/factory_bot/user.rb in meibo-0.1.0 vs lib/meibo/factory_bot/user.rb in meibo-0.2.0

- old
+ new

@@ -17,6 +17,14 @@ sequence(:given_name) {|n| "John#{n}" } sequence(:family_name) {|n| "Doe#{n}" } agent_sourced_ids { agents&.map(&:sourced_id) } primary_org_sourced_id { primary_organization&.sourced_id } end + + factory :meibo_jp_user, class: 'Meibo::JapanProfile::User', parent: :meibo_user do + transient do + homeroom { nil } + end + + home_class { homeroom&.sourced_id } + end end