- Grouping similar tests with context/describe
- Writing tests that check for different results
- Gain familiarity using rspec
Baby Shedebra is picky about what she consumes and will only eat her favorite foods. She also is a really young baby, so her food has to be small and of a soft texture. Referencing the code comments and the BabyFood
class, construct a spec file that verifies whether Shedebra cries or eats her BabyFood.
Be as thorough as you can with your tests. Attempt to cover all BabyFood
creation scenarios. But remember, it's more about the quality of the tests and not the quantity.