Rails Test Prescriptions: Keeping your Application healthy is now on sale. This is a beta, partial release.
Rails Test Prescriptions is a comprehensive guide to testing your Rails application, covering both the mechanics of writing tests and the style for writing good and useful tests.
I’m excited to be publishing this electronically in a way that allows me to keep the book up to date as Rails changes over the upcoming months and years. Your $9 purchase entitles you to all updated versions for the life of the book.
The current table of contents looks like this:
A basics section:
- Basics—creating test files, running tests
- Model tests
- Controller tests
- Integration tests
- View tests
- Fixtures
- Helper tests
- Mocks and stubs
The more detailed section currently has:
- Refactoring setups
- Testing style guide (incomplete)
- Fixture replacements
- Testing with Date/Time
- Faker
Planned for the future:
- Third-party view testing
- Security testing
- route testing
- Ajax testing
- Mailer testing
- File Upload Testing
- Refactoring assertions
- Shoulda
- RSpec
- Cucumber
- Webrat
- Dealing with legacy projects
- Autotest
- Tarantula
- Heckle
- RCov

