Section 7.0. Introduction Recipe 7.1. Centralizing the Creation of Objects Common to Test Cases Recipe 7.2. Creating Fixtures for Many-to-Many Associations Recipe 7.3. Importing Test Data with CSV Fixtures Recipe 7.4. Including Dynamic Data in Fixtures with ERb Recipe 7.5. Initializing a Test Database Recipe 7.6. Interactively Testing Controllers from the Rails Console Recipe 7.7. Interpreting the Output of Test::Unit Recipe 7.8. Loading Test Data with YAML Fixtures Recipe 7.9. Monitoring Test Coverage with rake stats Recipe 7.10. Running Tests with Rake Recipe 7.11. Speeding Up Tests with Transactional Fixtures Recipe 7.12. Testing Across Controllers with Integration Tests Recipe 7.13. Testing Controllers with Functional Tests Recipe 7.14. Examining the Contents of Cookie Recipe 7.15. Testing Custom and Named Routes Recipe 7.16. Testing HTTP Requests with Response-Related Assertions Recipe 7.17. Testing a Model with Unit Tests Recipe 7.18. Unit Testing Model Validations Recipe 7.19. Verifying DOM Structure with Tag-Related Assertions Recipe 7.20. Writing Custom Assertions Recipe 7.21. Testing File Upload Recipe 7.22. Modifying the Default Behavior of a Class for Testing by Using Mocks Recipe 7.23. Improving Feedback by Running Tests Continuously Recipe 7.24. Analyzing Code Coverage with Rcov |