Chapter 7. Rails Application Testing Section 7.0. Introduction Centralizing the Creation of Objects Common to Test Cases Creating Fixtures for Many-to-Many Associations Importing Test Data with CSV Fixtures Including Dynamic Data in Fixtures with ERb Initializing a Test Database Interactively Testing Controllers from the Rails Console Interpreting the Output of Test::Unit Loading Test Data with YAML Fixtures Monitoring Test Coverage with rake stats Running Tests with Rake Speeding Up Tests with Transactional Fixtures Testing Across Controllers with Integration Tests Testing Controllers with Functional Tests Examining the Contents of Cookie Testing Custom and Named Routes Testing HTTP Requests with Response-Related Assertions Testing a Model with Unit Tests Unit Testing Model Validations Verifying DOM Structure with Tag-Related Assertions Writing Custom Assertions Testing File Upload Modifying the Default Behavior of a Class for Testing by Using Mocks Improving Feedback by Running Tests Continuously Analyzing Code Coverage with Rcov Previous Next