I don't know the exact requirements, but if you get every positive interaction with them, are their roommate, and don't max out on either naughty or nice, it should happen. The last two I believe are requirements; it may not need every positive interaction, but getting all of them would guarantee it as long as the other two conditions are met.