Chapter 10Integration Testing with Capybara and Cucumber

An integration test specifies the behavior of multiple parts of your application working together. If a unit test is the main course of your testing meal, then an integration test is the cook preparing that meal, the waiter bringing it to you, and you eating it before paying and leaving a correct tip.

There are three related concepts here. An integration test is the generic name for any test that combines more than one unit. In Rails, integration tests are often end-to-end tests (or black box tests), meaning that they cover the entire system from the outside, making requests just as a user would and validating the output a user would see. An acceptance test combines an end-to-end test ...

Get Rails 4 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.