Left of the Dev

Everyday Rails Testing with RSpec sample code

Rails 8.1 edition (2026)

Everyday Rails Testing with RSpec 2026 cover

The 2026 edition of Everyday Rails Testing with RSpec is the current, supported version. It’s available for purchase via Leanpub, and is a free update for anyone who owns a license via Leanpub. Thank you for your support!

Rails 5.1 edition (2017)

Everyday Rails Testing with RSpec 2017 cover

The 2017 edition of Everyday Rails Testing with RSpec is provided as-is as reference for older versions of Rails and RSpec.

Test Rails apps (mostly) out of the box!

Join me on a thought experiment: How does my time-tested approach to testing Ruby on Rails applications apply to the tools we get from the framework? Whether you're new to Rails testing, or curious about the default testing stack, Testing Rails from Scratch gives you a pragmatic, end-to-end introduction to test-driven development. Covers Rails 8.1 and Ruby 4.0. Early release now available for sale on Leanpub!

Test with confidence!

If you liked my series on practical advice for adding reliable tests to your Rails apps, check out the expanded ebook version. Lots of additional, exclusive content and a complete sample Rails application. Updated in 2026 to Rails 8.1 and Ruby 4.0!

Newsletter

Software development news and tips, and other ideas and surprises from Aaron at Left of the Dev. Delivered to your inbox on no particular set schedule.