# Read about factories at https://github.com/thoughtbot/factory_bot

FactoryBot.define do
  factory :team_member do
    event

    after(:build) do |team_member|
      team_member.user_con_profile ||= build(:user_con_profile, convention: team_member.event.convention)
    end
  end
end

# Read about factories at https://github.com/thoughtbot/factory_bot

FactoryBot.define do
  factory :team_member do
    event
    display { true }

    after(:build) do |team_member|
      team_member.user_con_profile ||= build(:user_con_profile, convention: team_member.event.convention)
    end
  end
end

Set more reasonable defaults for team members in test
Set more reasonable defaults for team members in test
