The description of the kata is correct. There are no cases in the tests where three posts of the same category are included. In such a case post id is used as a tiebreaker. That being said categories can have only one or no posts at all. When there are no posts you still need to return a row with category_id and category values.
The description of the kata is correct. There are no cases in the tests where three posts of the same category are included. In such a case post id is used as a tiebreaker. That being said categories can have only one or no posts at all. When there are no posts you still need to return a row with category_id and category values.