RSpec.shared_examples'members and requesters associations'dodescribe'#members_and_requesters'doit'includes members and requesters'domember_and_requester_user_ids=namespace.members_and_requesters.pluck(:user_id)expect(member_and_requester_user_ids).toinclude(requester.id,developer.id)endenddescribe'#members'doit'includes members and exclude requesters'domember_user_ids=namespace.members.pluck(:user_id)expect(member_user_ids).toinclude(developer.id)expect(member_user_ids).not_toinclude(requester.id)endenddescribe'#requesters'doit'does not include requesters'dorequester_user_ids=namespace.requesters.pluck(:user_id)expect(requester_user_ids).toinclude(requester.id)expect(requester_user_ids).not_toinclude(developer.id)endendend