Have a look at our new "Complete Guide to Optimizing Slow Tests"! Discover →

semaphore logo

Build sustainable web apps with behavior-driven development

This rails testing handbook shares our experience in getting Semaphore to web scale without ever losing control of the codebase. The best part? These techniques will work both in new projects and large Ruby on Rails applications.

By clicking “Download Now” you agree to receive occasional marketing emails from Semaphore. You also agree that your personal data will be processed in accordance with our Privacy Policy.

In Rails Testing Handbook, you’ll learn about:

  • How to get in the BDD mindset and apply it in practice;
  • Setting up RSpec and Cucumber, database cleaner and others;
  • Developing features from scratch in red – green – refactor cycles;
  • Writing integration tests as Cucumber scenarios;
  • Writing controller tests using RSpec with mocking approach;
  • Writing model specs with RSpec;
  • How to collaborate via pull requests and continuous integration.

What people are saying

“I loved the Testing book. I’ve been writing Rails apps with tests for 10 years, and have used Cucumber in the past. I not only learned a few new things reading but was inspired to add acceptance tests to my current app.”
Greg Silcox, Senior Developer
“It’s brilliant. Lots of good best practices that the official Rails guides doesn’t have.”
Vishnu Menon, Lead Developer
“I’ve taken courses that use the same workflow, but having read your book I finally understand how to implement it.”
Bill Fero, Developer