|Recipe 12||Test Through Multiple Interfaces Using Worlds|
Your application has multiple public-facing interfaces, such as a graphical user interface (GUI) and an application programming interface (API). You’d like to test your code through both interfaces using the same set of Cucumber features.
Multiple implementations of the World, an object that Cucumber creates and passes into each test
Selenium WebDriver for testing a web app through the browser
HTTParty for testing an HTTP API
The Sinatra web framework to implement the example app
Many applications support more than one interface for controlling the underlying business logic. Your app might have a desktop GUI, a web interface, a REST API, some custom ...