O'Reilly logo

Rails 4 Test Prescriptions by Noel Rappin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required