What You’ve Done

In this chapter you used Capybara to drive Rails system tests that cover an entire user interaction, then used Cucumber to show an alternative way to describe requirements for testing.

I’ll talk more about these tools in future chapters. In Chapter 9, Testing JavaScript: Integration Testing, I’ll cover how Capybara and Cucumber can be attached to drivers that run the tests against a browser engine that executes JavaScript, allowing for client-side actions to be integration-tested. In Chapter 14, Testing External Services, I’ll talk about integration tests that might need to touch a third-party service. And in Chapter 16, Running Tests Faster and Running Faster Tests, I’ll talk about how to optimize the command-line execution ...

Get Rails 5 Test Prescriptions now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.