Get 40% discount on Test Driven Development in Ruby course for beginners:
https://www.udemy.com/learn-test-driven-development-in-ruby/?couponCode=slides
6. –Kent Beck
Clean code that works gives you a chance to learn all
the lessons that the code has to teach you. If you only
slap together the first thing you think of, you never
have time to think of a second, better thing.
16. 5. How to write a failing test
• What is our System Under Test’s (SUT)
responsibility?
• What should it do?
• What is the API for making the SUT do this?
• What does the SUT need to fulfill its responsibility?
• What output are there to observe?
• How can we tell it worked correctly?