Manuel Bustillo
726470267d
All checks were successful
Run unit tests / unit_tests (pull_request) Successful in 2m7s
39 lines
1.5 KiB
Ruby
39 lines
1.5 KiB
Ruby
require_relative '../../app/services/affinity_groups_hierarchy'
|
|
|
|
hierarchy = AffinityGroupsHierarchy.instance
|
|
|
|
hierarchy << 'guests_a'
|
|
hierarchy << 'guests_b'
|
|
hierarchy << 'common_guests'
|
|
|
|
hierarchy.register_child('guests_a', 'family_a')
|
|
hierarchy.register_child('family_a', 'close_family_a')
|
|
hierarchy.register_child('family_a', 'cousins_a')
|
|
hierarchy.register_child('family_a', 'relatives_a')
|
|
|
|
hierarchy.register_child('guests_a', 'work_a')
|
|
hierarchy.register_child('work_a', 'besties_work_a')
|
|
|
|
hierarchy.register_child('guests_a', 'friends_a')
|
|
hierarchy.register_child('friends_a', 'college_friends_a')
|
|
hierarchy.register_child('friends_a', 'high_school_friends_a')
|
|
hierarchy.register_child('friends_a', 'childhood_friends_a')
|
|
|
|
hierarchy.register_child('guests_a', 'sports_a')
|
|
hierarchy.register_child('sports_a', 'basket_team_a')
|
|
hierarchy.register_child('sports_a', 'football_team_a')
|
|
|
|
hierarchy.register_child('guests_b', 'family_b')
|
|
hierarchy.register_child('family_b', 'close_family_b')
|
|
hierarchy.register_child('family_b', 'cousins_b')
|
|
hierarchy.register_child('family_b', 'relatives_b')
|
|
|
|
hierarchy.register_child('guests_b', 'work_b')
|
|
hierarchy.register_child('work_b', 'besties_work_b')
|
|
|
|
hierarchy.register_child('guests_b', 'friends_b')
|
|
hierarchy.register_child('friends_b', 'college_friends_b')
|
|
hierarchy.register_child('friends_b', 'high_school_friends_b')
|
|
hierarchy.register_child('friends_b', 'childhood_friends_b')
|
|
|
|
hierarchy.register_child('common_guests', 'dance_club') |