Rails Prescriptions
by
Noel Rappin
Director, Pathfinder Development Ruby on Rails Practice
Published in March of 2009, with comprehensive strategies and tools for testing your Rails application. Available in DRM-free PDF format.
Indications: For any Rails programmer who writes tests. Or any Rails programmer who doesn’t write tests.
Prescription: Over thirty prescriptions for improving your tests. Take one a day. Or take them all at once.
Side Effects: Can cause rapid development, decrease sickness from bugs that are “just going around,” and create an increase in awesomenes.
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
Check out the Site