Blog27.3K views2,043 votes1 reply1 comment4,898 following
RSpec's aggregate_failures: Cleaner Multi-Assertion Tests Without the Boilerplate
RSpec's aggregate_failures lets multiple expectations run to completion and reports all failures together, eliminating the fix-one-re-run cycle for related assertions. Here's how to use it, a concrete controller spec example, and when to avoid over-aggregation.