Chapter 2. Testing saves your bacon
This chapter covers
- Writing tests with RSpec and Cucumber
- Maintaining code through tests
- Test- and behavior-driven development
1 We won’t use the scaffold generator for the rest of the book because people tend to use it as a crutch, and it generates extraneous code.
The answer is that you write automated tests for the application as you develop it, and you write these all the time.
By writing automated tests for your application, you can quickly ensure that your application is working as intended. If you ...