I have a trait in factory something like this
trait :trial_with_address_info do
first_name {'User'}
last_name {'Name'}
email {'trial.user@gmail.com'}
role {'user'}
tableau_username {'TrialUser'}
association :organisation, factory: [:trial_organisation]
association :user_group, factory: [:generic_user_group]
address {'address'}
city {'city'}
state {'State'}
zip {'123'}
country {'code'}
end
I want to crate another trait with all the same properties and values like the above trait with just one additional attribute.
Whats the recommended way to do this? or should i just repeat the same attribute + the one i need in the new trait?
Thanks.