概要
This skill provides comprehensive guidance for writing robust test suites in Ruby on Rails using RSpec, drawing from renowned sources like Better Specs and thoughtbot. It assists developers throughout the entire testing lifecycle—from model validations and controller logic to end-to-end system workflows—ensuring that tests are readable, maintainable, and effective. By adhering to core principles like Test-Driven Development (TDD) and the Arrange-Act-Assert pattern, it helps identify the right test types for specific features while avoiding common pitfalls like over-mocking or testing implementation details.