Our First Aruba Feature

Aruba is a Ruby gem that bundles several useful Cucumber step definitions that you can use in your own scenarios. To stay focused on what Aruba has to offer, we’re not going to build our own command-line application right now. Instead, we’ll just use Aruba to test the ruby command-line application. We’re going to start off by writing our feature without installing the aruba gem. Just bear with us; you will soon see it in action. Let’s start with something basic.

Streams and Exit Status

The ruby command has a number of handy command-line options. One of them is the -e option, which lets us execute a one-liner of Ruby code.

Let’s implement a scenario that verifies that the following command works as expected:

$ ​

Get The Cucumber Book now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.