Everydayrails Rspec 2017

screenshot of Everydayrails Rspec 2017

Sample source for the 2017 edition of Everyday Rails Testing with RSpec.

Overview

Everyday Rails Testing with RSpec is a resource crafted for developers eager to enhance their skills in test-driven development (TDD) using Ruby on Rails. The sample application provided here serves as a practical guide, illustrating how to incrementally test an existing Rails application. From starting with an entirely untested codebase to implementing thorough tests for models, controllers, features, and requests, this guide is an invaluable tool for mastering the art of coding with confidence.

The 2017 edition of the book by Aaron Sumner has been updated to reflect best practices in the Rails ecosystem, particularly focusing on version 5.1. This comprehensive approach ensures that readers not only understand theory but also see it in action through the corresponding sample application, making it easier to grasp concepts in a real-world scenario.

Features

  • Incremental Testing: Demonstrates how to introduce testing gradually into an untested codebase, promoting better coding practices over time.
  • Version Control with Git: Each chapter provides a specific branch within the repository, allowing users to checkout different stages of the application’s testing journey.
  • Comprehensive Coverage: Covers model, controller, feature, and request specs, ensuring a well-rounded understanding of how to test different components of a Rails application.
  • Learning Resources: Offers recommendations for additional learning materials like Git Immersion and Try Git for those new to version control.
  • User-Friendly Repository: Accessible source code via GitHub, making it easy for users to navigate through different versions without needing extensive Git knowledge.